I don't see anything, what "doesn't work" exactly?
Also you can post the code like this:
[ code ]
remove the spaces inside the [ ] and copy/paste the code in here!
[ /code ]
This will give you:
Code: ags
Also: You don't need any variable, just put your code after setting the music track like Khris showed... instead of starting a dialogue just put your "cutscene" character.say code instead of the start dialogue.
Also you can post the code like this:
[ code ]
remove the spaces inside the [ ] and copy/paste the code in here!
[ /code ]
This will give you:
function blabla_onClick()
{
// more lines of code in here ...
}
Also: You don't need any variable, just put your code after setting the music track like Khris showed... instead of starting a dialogue just put your "cutscene" character.say code instead of the start dialogue.