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

    Attributes issue

    Scheduled Pinned Locked Moved
    Help and Support
    2
    5
    113
    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.
    • DJEmergencyD
      DJEmergency
      last edited by

      Hello,

      I’m trying to change an attribute in a behavior. Example: Touch arrow (UI layer) Set attribute to player True (Main layer)

      Doing this does nothing.. a new iOS came out.. could this be a bug?

      1 Reply Last reply Reply Quote 0
      • DJEmergencyD
        DJEmergency
        last edited by DJEmergency

        More detail...

        Object arrow right is on the UI layer with events..
        Touch Started -> Set Attribute (Player) Is Right = True

        Player Object is on the main layer.
        Player -> Get Attribute (Player) Is Right -> to Label object.

        It doesn’t transfer the change at all. I even tried with changing velocity and other things, but nothing..

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

          @DJEmergency Assuming what you've typed out is exactly correct with the behaviours you have, it sounds like the player is getting its attribute just once at the start of the game and then never again, you need to make the player get it again. For example the player could do something like this:

          Player Object is on the main layer.
          Started touching (same arrow from ui) -> Get Attribute (Player) Is Right -> to Label object.

          1 Reply Last reply Reply Quote 0
          • DJEmergencyD
            DJEmergency
            last edited by

            But what if I always want to check the attribute during runtime? There’s only if statements and no always and or else..

            1 Reply Last reply Reply Quote 0
            • DJEmergencyD
              DJEmergency
              last edited by

              Never mind. To make an always event you need to use Timer = 0

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