Mario Style
Ayolabi12345
Member Posts: 30
What would I have to do so that if my character is hit by a hazard/enemy, the lose health and if they get hit again, they die
Comments
Create an integer attribute called Health and set it to a value of your choosing. When your actor collides with a hazard change attribute Health to Health-1. When health is 0 die.
Need Help? Email Me | Templates | Full Game Source Code
Thanks a lot
One thing, how would I make the character kind of blink to alert he's been hit. And also kind of push him back??