Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: on Wed 03/11/2004 13:23:33

Title: Creating a "click the guy with a gun" before he shoots you scene.
Post by: on Wed 03/11/2004 13:23:33
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.
Title: Re: Creating a "click the guy with a gun" before he shoots you scene.
Post by: Ishmael on Wed 03/11/2004 14:45:10
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.
Title: Re: Creating a "click the guy with a gun" before he shoots you scene.
Post by: Ishmael on Wed 03/11/2004 15:08:38
Oh, sorry, SetTimer.

IsTimerExpired should have a "See Also: SetTimer"... didn't find that either...?
Title: Re: Creating a "click the guy with a gun" before he shoots you scene.
Post by: Ishmael on Wed 03/11/2004 17:08:15
Post your script so we can debug it.

Basically, to check when the timer is expired, I'd use the room repeadetly_execute.
Title: Re: Creating a "click the guy with a gun" before he shoots you scene.
Post by: strazer on Wed 03/11/2004 18:05:26
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.
Title: Re: Creating a "click the guy with a gun" before he shoots you scene.
Post by: Scummbuddy on Wed 03/11/2004 21:42:17
strazer, be a doll and PM chris with that typo, so he may fix it, if you haven't already.  ;D
Title: Re: Creating a "click the guy with a gun" before he shoots you scene.
Post by: Scummbuddy on Thu 04/11/2004 17:17:57
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