How to make an actor animate in according to direction when using constrain attribute.

sandmansandman Member Posts: 14
edited September 2012 in Working with GS (Mac)
Hi all game salad users,

I'm trying to make an actor animate according to the direction its moving.
i.e. if its moving right it will animate(D-images)-if its moving left it will animate(E-images)

I checked everywhere and the only one is tshirtbooth's
I checked tshirtbooth's tutorial (self.motion.linearvelocity)>0
But it only works if the actor is constrained to the touch by the "move to" attribute.
It not working cause I'm using "constrain" to touch position. I tried also to use change attribute but it seems to be only working with "move to"

Any insights to how I can achieve this using constrain or change attribute.

Also I have noticed that the above attributes are slightly different when using "mouse button down" or "touch is pressed", right?

Thank you for your help

Comments

Sign In or Register to comment.