scores/lives?

Subscribe to scores/lives? 4 posts, 3 voices

 
avatar for pirateyoshi121 pirateyoshi121 55 posts

I need help with a game i made i need to put in a scoring system and lives please help!

 
avatar for Eggy Eggy 765 posts

on your frame put

_root.score = 0

make a text box, and make it dynamic, in the variable call it “score”

whenever you want the score to go up simply put

_root.score += 5

simple. Just do the same for lives but take it away.

 
avatar for pirateyoshi121 pirateyoshi121 55 posts

how do you make it so when you touch something eg a bar at the bottom of a pong/the paddle or the life ups/money in a platformer go down/up?

 
avatar for BigCheese BigCheese 367 posts

Look into collision detection. hitTest works usually, unless you’re moving too fast. Then, you’d have to use math.