I don’t know how to code well in this
-
@Hyper-dus-games If you need more help on understanding most of the features on hyperPad, you can learn a ton a things here:
-
@XxWhiteHearrxX thanks that was helpful
-
hyperPad has Box containers which are essentially variables.
-
@Murtaza where do you find box containers
-
@Murtaza how do you bring a value to a different object?
-
See this on sharing values between behaviours:
https://hyperpad.zendesk.com/hc/en-us/articles/202467445-Sharing-Values-Between-BehaviorsBut 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.
-
How do Attributes work?
-
@Hyper-dus-games
See our documentation
https://hyperpad.zendesk.com/hc/en-us/articles/207778953-Object-Attributes -
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
-
I might be able to help but I don't understand exactly what you're trying to do, can you give more details?
-
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:
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. -
@Aidan-Oxley can you send a video of that proses? Because I don’t fully understand
(Sorry for so many questions)
-
@Hyper-dus-games yes I can, give me a few minutes.
-
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.
-
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