changing animation when actor follows mouse/touch

LokitoesLokitoes Member, PRO Posts: 187

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

  • gingagaminggingagaming FREELANCE GS DEV Member Posts: 1,685

    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

  • LokitoesLokitoes Member, PRO Posts: 187

    Thanks @gingagaming I'll take a look!

Sign In or Register to comment.