mecanim left and right animation

I have just started to look at the mecanim system for use with character movement.

I have imported a rigged character successfully and have used mecanim to move my character forward. Camera is at angle so it looks like the character is moving right (with the camera being orthographic) - all good there.

but my problem is when i use my left key, how do i change the animation to animate and move left…?

Basically I just want a character moving left and right

You are asking a question where the answer is many steps, and there are many different ways to do it.

I think it might server you better to look up some mechanim tutorials, specifically about the Animation Controller!

with the animator, so if you just want him to turn then Animator>Rotation (float) and then set up the motion using a blendtree, once that’s done then write the script so when left or right is being pressed the rotation goes between -5/0/5 so -5 would be left and 5 would be right. Loads of tutorials out there that can show you how to do it I tried about 9 different ways before I actually got the hang of it.

1 Like