Ok so I followed a tutorial to make health bar. The health bar is working and goes down when the player gets hit.
I also made it so that when its 0 or bellow it will go to the "Game over" screen, but for some resason it does switch to the "Game over" screen. Please help. Here is a picture of the events. I just crossed over the health bar parts to make it easier to see.
ibb.co/mRtgN7
Thanks!
Develop games in your browser. Powerful, performant & highly capable.
Event 3 you're using 'healt'
Event 5 you're using 'health'
Seeing the Sprite attributes may help, but I'm assuming you have an instance variable called Health, and you mistyped it in event 3.
You are subtracting from Sprite.Healt, not Sprite5.Health
Ohhh ok thank you so much!