So I’m pretty new to blitz and programming in general but I can't seem to figure out how to do it. When my player’s score reaches 25,000 I want my player to gain an extra life, but when ever I try to code it, it ends up adding 1 to it every time it loops through.
The code that I’m adding:
If score >= 25000
lives = lives + 1
EndIf
I understand why it’s adding one, I just can't find away to only add it once.
Its probably really simple =)
Any help would be appreciated
The code that I’m adding:
If score >= 25000
lives = lives + 1
EndIf
I understand why it’s adding one, I just can't find away to only add it once.
Its probably really simple =)
Any help would be appreciated