RTS game Animations

My brother and I have started making a RTS game, we have the basic functions down ( selecting/moving units, constructing buildings etc) one thing im confused on and can’t find info about is Animating in a RTS game.I have looked in these forums as well as googling but no luck i found this:

Which i thought would work but didn’t.

I’m trying to get my character to (who already has Idle animation) to play the walking animation when he is suppose to. I would awesome you would have to have a check to make sure that unit is selected, and then another for when he is clicked to walk, and then it plays the animation, or maybe im just to into it and got tunnel vision :P…

Any help on this matter would be amazing, thanks guys!

Bump

I would recommend using the mecanim system for this. This video shows humanoid characters, but it works for any type of character.

Would also suggest the docs
https://docs.unity3d.com/Documentation/Manual/MecanimAnimationSystem.html

Perhaps you should also take a look at some of the pre-made packages which can handle animation :slight_smile: There are a ton of both free and paid packages that can rid you of the need to become a character animators.