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 = TruePlayer 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
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