Greetings everyone. I set up a life bar for my main hero awhile ago, and it has been draining fine until I decided that I wanted it to regenerate 1 health per a certain amount of points earned. My event looks like this:
Event condition(<system> <compare variable> "score" greater than or equal to 25)
Action(<Hero> <add to> instance variable "Life" +1)
My hero has a max life of 5 chunks in the bar that he starts out with, but when he hits 25+ score and the above event activates the health line inside the health bar frame grows and shoots across the entire top of my screen! I can then get hit as many times as I want because of the ever growing health bar... Am I doing something wrong? I have my health bar set up just like Kiyoshi's guide showed in the tutorials section of scirra.com with my own graphics of course. Link: Kiyoshi's Life bar guide.
Can anyone explain why something like that would happen just to add a single chunk back onto my health? Thanks in advance!