Computer Science Canada Need Help in a plane game. |
Author: | Galea [ Sat Apr 03, 2004 11:59 am ] |
Post subject: | 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. |
Author: | poly [ Sat Apr 03, 2004 1:37 pm ] |
Post subject: | |
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 |
Author: | Galea [ Sat Apr 03, 2004 10:24 pm ] |
Post subject: | |
how can I do that last point? |
Author: | Tony [ Sat Apr 03, 2004 10:59 pm ] | ||
Post subject: | |||
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
|