logo hyperPad Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Login

    I don’t know how to code well in this

    Scheduled Pinned Locked Moved
    Help and Support
    4
    19
    540
    Loading More Posts
    • 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.
    • MurtazaM
      Murtaza Admin
      last edited by

      See this on sharing values between behaviours:
      https://hyperpad.zendesk.com/hc/en-us/articles/202467445-Sharing-Values-Between-Behaviors

      But box containers are are restricted to the object it self. So another object in your scene can not read/write to it.

      Instead, you can use something like attributes. Attributes is a lit of keys/values for an object that can be accessed by any other object.

      1 Reply Last reply Reply Quote 0
      • Hyper dus gamesH
        Hyper dus games
        last edited by

        How do Attributes work?

        MurtazaM 1 Reply Last reply Reply Quote 0
        • MurtazaM
          Murtaza Admin @Hyper dus games
          last edited by

          @Hyper-dus-games
          See our documentation
          https://hyperpad.zendesk.com/hc/en-us/articles/207778953-Object-Attributes

          1 Reply Last reply Reply Quote 0
          • Hyper dus gamesH
            Hyper dus games
            last edited by

            Sorry for so many questions but I just don’t understand I’m trying to bring a value to a different block to then change that value when it’s clicked on that different block

            1 Reply Last reply Reply Quote 0
            • Aidan_FireA
              Aidan_Fire
              last edited by

              I might be able to help but I don't understand exactly what you're trying to do, can you give more details?

              1 Reply Last reply Reply Quote 0
              • Aidan_FireA
                Aidan_Fire
                last edited by

                To create a variable that more than one object can see, use Attributes. First create the attribute in the object that you want to store the variable:
                B389808A-85F8-433D-8C55-78F17B634135.jpeg
                Then you can use Set Attribute to modify the variable (make sure you select the object that owns the Attribute and select the right attribute) and you can use Get Attribute in other objects to send it over. Hope this helps.

                Hyper dus gamesH 1 Reply Last reply Reply Quote 0
                • Hyper dus gamesH
                  Hyper dus games @Aidan_Fire
                  last edited by

                  @Aidan-Oxley can you send a video of that proses? Because I don’t fully understand

                  (Sorry for so many questions)

                  Aidan_FireA 1 Reply Last reply Reply Quote 0
                  • Aidan_FireA
                    Aidan_Fire @Hyper dus games
                    last edited by

                    @Hyper-dus-games yes I can, give me a few minutes.

                    1 Reply Last reply Reply Quote 0
                    • Aidan_FireA
                      Aidan_Fire
                      last edited by

                      Ok, so I have created an example and recorded the whole thing. In this example, I have two objects. If you touch the first one (on the right), you will be given a pop up where you will be able to type in anything you want, and this object will save what you type as an attribute and also display as text what you entered. The second object (to the left) will get the attribute of the first object and then display it as text.

                      I also decided to add some colour behaviours just for the video so you could see when I am touching the labels. I ran into a small problem while making it to do with the timing of behaviours which is why you will see it fail the first time. I'll send you a link to the project as well if you want to open it yourself.

                      1 Reply Last reply Reply Quote 0
                      • Aidan_FireA
                        Aidan_Fire
                        last edited by Aidan_Fire

                        E0DF639D-BC23-4E78-99B2-FEC71318DD4A.MP4

                        Video is above (I would recommend copying it and pasting to another browser, it's weird in hyperPad), copy and paste this link into safari for the project: https://go.aws/39n3Taz

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post