Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
hyperPad

hyperPad Forum

  1. Home
  2. Help and Support
  3. how do make a character quit the game when HP is 0

how do make a character quit the game when HP is 0

Scheduled Pinned Locked Moved Help and Support
3 Posts 3 Posters 687 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • DingusDevD Offline
    DingusDevD Offline
    DingusDev
    wrote on last edited by
    #1

    I’m trying to make the game quit when a characters hp is 0
    is this coding right? Because it’s not working

    E4C1F81F-9ABD-4418-854C-7D06A051404D.png

    TutorialDoctorT RobinsonXR 2 Replies Last reply
    0
    • DingusDevD DingusDev

      I’m trying to make the game quit when a characters hp is 0
      is this coding right? Because it’s not working

      E4C1F81F-9ABD-4418-854C-7D06A051404D.png

      TutorialDoctorT Offline
      TutorialDoctorT Offline
      TutorialDoctor
      wrote on last edited by
      #2

      @DingusDev 33D71CE0-5E2C-4494-A143-437FCF393976.png

      1 Reply Last reply
      0
      • DingusDevD DingusDev

        I’m trying to make the game quit when a characters hp is 0
        is this coding right? Because it’s not working

        E4C1F81F-9ABD-4418-854C-7D06A051404D.png

        RobinsonXR Offline
        RobinsonXR Offline
        RobinsonX
        wrote on last edited by RobinsonX
        #3

        @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).

        1 Reply Last reply
        0

        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
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Search