
-----------------------------------
Galea
Sat Apr 03, 2004 11:59 am

Need Help in a plane game.
-----------------------------------
Hello. I am making a plane game for turing. I have a counter, but when it reaches zero, I want it to pause the game and put something like "Game over"

here is a zip of my game.

the planes are a little fast but that is because at school they go much slower...I think it's their pc's.

-----------------------------------
poly
Sat Apr 03, 2004 1:37 pm


-----------------------------------
To be a bit more "efficient" change your if structure...Right now its like this:
if this then
%blahblah
end if
if this then
%blahblah
end if
etc. etc.

change it  so its like:
if this then
%blahblah
elsif this then
%blahblah
end if

and for the timer, just make it so when the timer reaches 0 it exits the loop, stops the music, clears the screen and displays GAME OVER

-----------------------------------
Galea
Sat Apr 03, 2004 10:24 pm


-----------------------------------
how can I do that last point?

-----------------------------------
Tony
Sat Apr 03, 2004 10:59 pm


-----------------------------------
if you got a single loop then just exit if you have multiple loops, then you have to set up quit flags.

the easiest way I image though is

put "game over"
return

