Every 50 points , player health +1
Hello GS Community,
I've got a quick question which I will like to seek some help with.
I will like to have my character to regain 1 health everytime the score hits multiple of 50.
How do I do that dynamically?
Thanks in advance
I've got a quick question which I will like to seek some help with.
I will like to have my character to regain 1 health everytime the score hits multiple of 50.
How do I do that dynamically?
Thanks in advance
Comments
Game.health=game.health+1
Hi @Clownmrminghui
Make an attribute called ScoreTest
In the Rules where you add score points, i.e:
Change Attribute scene.Score to scene.Score+1 -----or similar
-----add
Change ScoreTest to Score%50
Rule When ScoreTest = 0
Change Attribute scene.Health to scene.Health+1
Edit: beaten to it by Jon... ;-)