how do make a character quit the game when HP is 0
DingusDev last edited by
I’m trying to make the game quit when a characters hp is 0
is this coding right? Because it’s not working
TutorialDoctor last edited by
RobinsonX last edited by RobinsonX
@DingusDev You've programmed it to only check on start. You can plug the Add to Health Bar behavior to Quit Project behavior, like TutorialDoctor suggested. This makes it so when the health bar reaches 0, it will restart the game.
This is because in the Add to Health Bar behavior, there is a toggle to trigger when the health bar becomes empty (it should be on by default).