changing animation when actor follows mouse/touch
Hi all,
Basically I have my main actor following the mouse/touch position by making the actor 'move to' the position of the click. Very simple. My question is, this actor needs to be animated. I have animation of it walking right, left, up, down, as it is a platform layout. But with my rule set up this way, I can only give one set of animating instructions. How would I make it so that if the character has to move right to get to the mouse/touch, it will use the walking right animation, but if I then touch the other side of the screen, it will use the walking left animation? I can't think of a way to do this and keep the same 'move to x,y' rule.
PS. Sorry if this has been answered before, but it's a weird one to search for with the right keywords.
Cheers
A
Comments
I have just made a quick demo showing how you can change the animation from left to right by clicking on the left or right side of the screen.
Damien
Thanks @gingagaming I'll take a look!