How to set an altitud record on a bouncing ball
LordTarantor
Member, PRO Posts: 890
I have a bouncing ball and every time I trow it to the air it will get to a certain altitude. Then it will come down hit the floor and come back up to an altitude lower than before unless it hit a trampoline or something in which case it might get higher than the first time. I want to set an altitude record to maybe show it on a screen and spawn a few stuff every time it set a new record. How can I do this?
Comments
There are videos that will help you figure out a high score system:
http://www.google.com/search?q=high+score+gamesalad&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a#q=high+score+gamesalad&rls=org.mozilla:en-US:official&safe=active&tbm=vid
The basic idea is to check to see if game.score > game.highscore and if so, change game.highscore to game.score and also save game.highscore and optionally spawn something.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Thanks again my friend!