I have a problem.
I want that the character says a sentence after I didn't something in the game.
Example:
I'm in the startscreen and I have to click on the start-button. The character begins to be nervous and says: "Please click on the start-button."
After a short time, when I didn't something again, the character says: "Didn't hear me. I said you must click the start-button to start the game." etc.
Can somebody help me?
SetTimer works for me.
Can you give me an example or how should I write it in the script?
And where should I put it: In R. Execute or Players Enters Room (a.f)?
in room_Load or room_AfterFadeIn, put:
SetTimer(1, 400);
40 is one second, so 400 will be about 10 seconds.
in the repeatedly execute of that room, put:
if (IsTimerExpired(1) == 1) {
character.Say("Please click on the start-button. It's getting boring now.");
}
And add SetTimer(2, 400); after the .Say for the next sentence.
Thanks for the help. It functions! :)