Hi, I’m working on simple Star shooter game project where the ship shoots asteroids and earns points everytime it shoots an asteroid, each asteroid hit is gains 10 points. The player starts out with 3 lives and I want it to make it where when the player reaches over 1000 points that the player earns an extra life for every time the player reaches every thousand like over 1000 for an extra life and over 2000 for an extra life, etc. Can someone help me with this portion of the code? I believe I need to use some sort of loop but don’t know how. Lives is declared as:
local lives = 3 (to start out with 3 lives)
[import]uid: 119394 topic_id: 21863 reply_id: 321863[/import]