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 to make checkpoints?

How to make checkpoints?

Scheduled Pinned Locked Moved Help and Support
7 Posts 2 Posters 360 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.
  • FranjipangF Offline
    FranjipangF Offline
    Franjipang
    wrote on last edited by
    #1

    Hello hello! I’ve been struggling to make a checkpoints in my games. I can show what I’ve got so far but no dice unfortunately on actually making it work. I’m using attributes and save/load blocks to get it to work.

    IMG_0275.jpeg This is my set up at the moment.

    IMG_0277.png
    This is the code I have in the checkpoint

    IMG_0278.png
    This is the code I have in the world behaviours

    I’m not sure super sure what I’m doing wrong. Here’s a link to the project (hopefully it works okay!) please take a look and see what I’m doing wrong :’)

    FranjipangF RobinsonXR 2 Replies Last reply
    0
    • FranjipangF Franjipang

      Hello hello! I’ve been struggling to make a checkpoints in my games. I can show what I’ve got so far but no dice unfortunately on actually making it work. I’m using attributes and save/load blocks to get it to work.

      IMG_0275.jpeg This is my set up at the moment.

      IMG_0277.png
      This is the code I have in the checkpoint

      IMG_0278.png
      This is the code I have in the world behaviours

      I’m not sure super sure what I’m doing wrong. Here’s a link to the project (hopefully it works okay!) please take a look and see what I’m doing wrong :’)

      FranjipangF Offline
      FranjipangF Offline
      Franjipang
      wrote on last edited by
      #2

      The link to the project is here! https://bit.ly/4r9tOKC

      1 Reply Last reply
      0
      • FranjipangF Franjipang

        Hello hello! I’ve been struggling to make a checkpoints in my games. I can show what I’ve got so far but no dice unfortunately on actually making it work. I’m using attributes and save/load blocks to get it to work.

        IMG_0275.jpeg This is my set up at the moment.

        IMG_0277.png
        This is the code I have in the checkpoint

        IMG_0278.png
        This is the code I have in the world behaviours

        I’m not sure super sure what I’m doing wrong. Here’s a link to the project (hopefully it works okay!) please take a look and see what I’m doing wrong :’)

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

        @Franjipang You have all the right behaviors. You just want to make sure they are being triggered in the right order. First, you'd want to load all the values before you try using them.

        IMG_7603.png IMG_7604.png IMG_7605.png

        I used a Behavior Bundle to ensure that behaviors are triggered in the right order (left to right). To simplify your logic, I made the player's position the default value for the Load from Save File behaviors. So on a fresh save file, it will just move the player to its original position. When these values are saved, it will use those saved values.

        RobinsonXR 1 Reply Last reply
        0
        • RobinsonXR RobinsonX

          @Franjipang You have all the right behaviors. You just want to make sure they are being triggered in the right order. First, you'd want to load all the values before you try using them.

          IMG_7603.png IMG_7604.png IMG_7605.png

          I used a Behavior Bundle to ensure that behaviors are triggered in the right order (left to right). To simplify your logic, I made the player's position the default value for the Load from Save File behaviors. So on a fresh save file, it will just move the player to its original position. When these values are saved, it will use those saved values.

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

          I noticed you have a "checkpoint" save key in your project. You don't need it if you're only saving player position. But if you want to find out what checkpoint the player is at, then it does make sense to have a "checkpoint" save key. Just make sure you use the Load from File behavior to retrieve the checkpoint, since it will be up to date.

          FranjipangF 1 Reply Last reply
          0
          • RobinsonXR RobinsonX

            I noticed you have a "checkpoint" save key in your project. You don't need it if you're only saving player position. But if you want to find out what checkpoint the player is at, then it does make sense to have a "checkpoint" save key. Just make sure you use the Load from File behavior to retrieve the checkpoint, since it will be up to date.

            FranjipangF Offline
            FranjipangF Offline
            Franjipang
            wrote on last edited by
            #5

            @RobinsonX I do plan to do different checkpoints yes! This is really helpful though. Thank you so much for your help :) how would you clear out the save when you start a new game? I’m using the modify save file>delete all keys but it’s not clearing the keys just yet.

            IMG_0281.png

            RobinsonXR 1 Reply Last reply
            0
            • FranjipangF Franjipang

              @RobinsonX I do plan to do different checkpoints yes! This is really helpful though. Thank you so much for your help :) how would you clear out the save when you start a new game? I’m using the modify save file>delete all keys but it’s not clearing the keys just yet.

              IMG_0281.png

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

              @Franjipang The Modify Save File behavior will have a Delete All Keys option which is equivalent to resetting the entire save file (what you shown in the screenshot). The thing is you want to trigger it before loading save values, so you'd want to trigger it before going into the level. This could be done in the title screen so the data isn't reset every time you restart the level.

              FranjipangF 1 Reply Last reply
              1
              • RobinsonXR RobinsonX

                @Franjipang The Modify Save File behavior will have a Delete All Keys option which is equivalent to resetting the entire save file (what you shown in the screenshot). The thing is you want to trigger it before loading save values, so you'd want to trigger it before going into the level. This could be done in the title screen so the data isn't reset every time you restart the level.

                FranjipangF Offline
                FranjipangF Offline
                Franjipang
                wrote on last edited by
                #7

                @RobinsonX yoooo thank you so much! This has worked perfectly :)

                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