how do make a character quit the game when HP is 0
-
I’m trying to make the game quit when a characters hp is 0
is this coding right? Because it’s not working
-
-
@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).
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login