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. Carrying values between scenes?

Carrying values between scenes?

Scheduled Pinned Locked Moved Help and Support
6 Posts 3 Posters 1.2k 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.
  • AcebossA Offline
    AcebossA Offline
    Aceboss
    wrote on last edited by
    #1

    How do I carry a value (i.e. a score) from 1 scene to the next?

    AcebossA 1 Reply Last reply
    1
    • AcebossA Aceboss

      How do I carry a value (i.e. a score) from 1 scene to the next?

      AcebossA Offline
      AcebossA Offline
      Aceboss
      wrote on last edited by
      #2

      @Aceboss So I managed to achieve it via the ‘modify save file’ and ‘load file’ behaviours, in case anyone else is looking for the means of doing it.

      MurtazaM 1 Reply Last reply
      1
      • AcebossA Aceboss

        @Aceboss So I managed to achieve it via the ‘modify save file’ and ‘load file’ behaviours, in case anyone else is looking for the means of doing it.

        MurtazaM Offline
        MurtazaM Offline
        Murtaza
        Admin
        wrote on last edited by
        #3

        @Aceboss

        Another way you can do it is to place an object on your UI layer, and store the value on that object. It should then exist in all scenes.

        AcebossA 1 Reply Last reply
        1
        • MurtazaM Murtaza

          @Aceboss

          Another way you can do it is to place an object on your UI layer, and store the value on that object. It should then exist in all scenes.

          AcebossA Offline
          AcebossA Offline
          Aceboss
          wrote on last edited by
          #4

          @Murtaza I haven’t had too much luck with that. I.e. if I set an attribute on an object in the global ui in scene1, and then get that attribute in scene2, the value returned is the default, not what was set in scene1 - any ideas?

          RobinsonXR 1 Reply Last reply
          1
          • AcebossA Aceboss

            @Murtaza I haven’t had too much luck with that. I.e. if I set an attribute on an object in the global ui in scene1, and then get that attribute in scene2, the value returned is the default, not what was set in scene1 - any ideas?

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

            @Aceboss When switching scenes, make sure refresh is disabled. If that is enabled, all GUI objects reset when a different scene is loaded.

            AcebossA 1 Reply Last reply
            0
            • RobinsonXR RobinsonX

              @Aceboss When switching scenes, make sure refresh is disabled. If that is enabled, all GUI objects reset when a different scene is loaded.

              AcebossA Offline
              AcebossA Offline
              Aceboss
              wrote on last edited by
              #6

              @RobinsonX Thanks, that was it!

              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