How can I do an a scene where an a character is aiming the player with a gun, and let's say, after 5 seconds he shoots and player gets an a window where is an a text "You are killed!Do you want to restart the scene?" and some buttons.Like in Pleurghburg.
Seek thyself to the seacret inscriptions telling of the Timer function in the holy Manual.
In other words, RTFM for Timer and Is Timer Expired.
Oh, sorry, SetTimer.
IsTimerExpired should have a "See Also: SetTimer"... didn't find that either...?
Post your script so we can debug it.
Basically, to check when the timer is expired, I'd use the room repeadetly_execute.
QuoteIt says something like "undefined token" from the If thing on the IsTimerExpired.
It's a typo in the manual. AGS is case-sensitive, so use "if" instead of "If".
Edit:
Scummy: Hadn't. Done.
strazer, be a doll and PM chris with that typo, so he may fix it, if you haven't already. ;D
you make a new bg with text in your favorite picture program, like MS Paint, and then import the image into a new room in ags, and when you want to have the players game over, move to that room, and give the option to restart the game, or quit