Creating a "click the guy with a gun" before he shoots you scene.

Started by , Wed 03/11/2004 13:23:33

Previous topic - Next topic

Tuntis

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.

Ishmael

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.
I used to make games but then I took an IRC in the knee.

<Calin> Ishmael looks awesome all the time
\( Ö)/ ¬(Ö ) | Ja minähän en keskellä kirkasta päivää lähden minnekään juoksentelemaan ilman housuja.

Ishmael

Oh, sorry, SetTimer.

IsTimerExpired should have a "See Also: SetTimer"... didn't find that either...?
I used to make games but then I took an IRC in the knee.

<Calin> Ishmael looks awesome all the time
\( Ö)/ ¬(Ö ) | Ja minähän en keskellä kirkasta päivää lähden minnekään juoksentelemaan ilman housuja.

Ishmael

Post your script so we can debug it.

Basically, to check when the timer is expired, I'd use the room repeadetly_execute.
I used to make games but then I took an IRC in the knee.

<Calin> Ishmael looks awesome all the time
\( Ö)/ ¬(Ö ) | Ja minähän en keskellä kirkasta päivää lähden minnekään juoksentelemaan ilman housuja.

strazer

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.

Scummbuddy

strazer, be a doll and PM chris with that typo, so he may fix it, if you haven't already.  ;D
- Oh great, I'm stuck in colonial times, tentacles are taking over the world, and now the toilets backing up.
- No, I mean it's really STUCK. Like adventure-game stuck.
-Hoagie from DOTT

Scummbuddy

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
- Oh great, I'm stuck in colonial times, tentacles are taking over the world, and now the toilets backing up.
- No, I mean it's really STUCK. Like adventure-game stuck.
-Hoagie from DOTT

SMF spam blocked by CleanTalk