Arcade Sequences?

Started by KrisMacDee, Sun 22/05/2005 13:17:55

Previous topic - Next topic

KrisMacDee

Hey Bigmac here! I was wondering, how do you make arcade sequences like in Broken Sword. You know like you have a time limit to do an action like duck as someone's about to shoot the character . Any replies would be appriciated.Thanks Bigmac
Before you judge a man, walk a mile in his shoes. After that, who cares? You're a mile away and you've stolen his shoes! - Billy Connelly

Ishmael

Simple. Script it.

Really, you just can't fire up AGS and make one. It'll take a lot of work to perfect it. For some arcade examples, see the demo game. There's a couple of arcade games. You really should go through the scripting tutorial and look through the functions for anything that might prove usefull with making your vision a working arcade sequence. We can't just give you the code. Use your own brain! ;)
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.

PsychicHeart

i THINK he means a countdown. i'm not sure how to do that, even though someone has sort of told me. I think we need a translator in the AGS Forums to 'Dumb down' some things.
Formerly known as Flukeblake, Flukezy etc.

Ishmael

For time limits, the SetTimer and IsTimerExpired commands and the repeatedly_execute function will do the trick... but in my opinion no-one can just give the code for that, we can't read minds. Study the commands and try to work something out, and if it doesn't work though the code seems to be correct, post here so we can tell you what is wrong with the code.

I strongly support the trial and error -path, as it is what i took, and it's been great to discover my creations sudenly starting to work like a dream when I add an if condition and set a variable to be checked, or something...
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.

KrisMacDee

Flukeblake is right that's what I was talking about. Ishmael see when you add a Timer how would you stop the timer from going off every time you enter the room cos in my game you will go back to the room which the sequence is in.But thanx though the code has worked so far.Cheerz
Bigmac
Before you judge a man, walk a mile in his shoes. After that, who cares? You're a mile away and you've stolen his shoes! - Billy Connelly

Ashen

Start it in First time player enters screen, or use a variable to check, e.g.:
Code: ags

if (GetGlobalInt(1) == 0) {
  SetTimer (1, 120);
  SetGlobalInt (1, 1);
}
I know what you're thinking ... Don't think that.

SMF spam blocked by CleanTalk