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
![:) :)](http://forums.gamesalad.com/plugins/emojiextender/emoji/twitter/smile.png)
Comments
Game.health=game.health+1
Send and Receive Data using your own Server Tutorial! | Vote for A Long Way Home on Steam Greenlight! | Ten Years Left
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... ;-)
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps