Goes to 9960...
Ok so i have a custom score counter with my own images as shown in the gamesalad cookbook score tutorial 3.
Basically when you kill something you gain 10 points and when you die you lose 50. When you are on 10 and you die your score goes from 0010 to 9960,
How can i prevent this from happening?
Thanks
Basically when you kill something you gain 10 points and when you die you lose 50. When you are on 10 and you die your score goes from 0010 to 9960,
How can i prevent this from happening?
Thanks
Comments
Where you have the change attribute game.score to game.score-50 just change it to change attribute game.score to max(0,game.score-50). Hopefully that should do the trick.