Need Help in a plane game.
Author |
Message |
Galea
|
Posted: 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.
Description: |
|
![](http://compsci.ca/v3/pafiledb/images/icons/clip.gif) Download |
Filename: |
Plane Game.zip |
Filesize: |
1.54 MB |
Downloaded: |
347 Time(s) |
|
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
poly
|
Posted: Sat Apr 03, 2004 1:37 pm Post subject: (No 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
|
|
|
|
|
![](images/spacer.gif) |
Galea
|
Posted: Sat Apr 03, 2004 10:24 pm Post subject: (No subject) |
|
|
how can I do that last point?
|
|
|
|
|
![](images/spacer.gif) |
Tony
![](http://wiki.compsci.ca/images/f/f4/OniTony.gif)
|
Posted: Sat Apr 03, 2004 10:59 pm Post subject: (No 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
code: |
put "game over"
return
|
|
Tony's programming blog. DWITE - a programming contest. |
|
|
|
![](images/spacer.gif) |
|
|