Attributes issue



  • 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?



  • 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..



  • @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.



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



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


Log in to reply