Does GS run behaviors in layer order?

SquareHeartSquareHeart Member, PRO Posts: 69
edited November -1 in Working with GS (Mac)
maybe a dumb question.
I know GS fires off it's behaviors in a top to bottom fashion in an Actor.
But in what order does it do the behaviors of actors - is it in scene order?

This cropped up while I was trying to do a magnitude value on two actors (constrained to touch 1 and 2) and then taking the magnitude value and doing some expressions on it.
I found I was getting unexpected values - it supposed to give me a 0 value when both finger touched the screen - but I found it would randomly blurt out the actually magnitude rather than the tweaked value i was after. anyway long story short - I put a .1 second delay on the expression and it magically worked - which I assume I was just sending to be the last behavior to trigger.

Comments

  • RHRH Member Posts: 1,079
    Yeh, it works from bottom up in layer order. It's a very handy thing to know when sometimes your rules don't work as expected but all you have to do is re-layer it :)
  • SquareHeartSquareHeart Member, PRO Posts: 69
    ah great, thanks for that! I'll give it try
Sign In or Register to comment.