[HELP] Enemies not animating after upgrading

So I imported my Laser Defender game to Unity 5 (5.3.2f1 to be exact) and my enemy’s animations aren’t working. They just appear at their spawn points instead of swooping in.

So I looked at the Animator tab and all the animation states are there as they should be. But the Animation tab was empty. So I put my first Enemy Prefab in to the scene, and selected “create new clip”, and there were my animations already there! Here’s a screen shot of both the Animation and Animator tab with the Enemy instance selected.

But it’s still not working. The enemies are still just appearing at their spawn points, including the extra instanced Enemy. And yes I did click “Apply”. :stuck_out_tongue: When I play the animation in the Animation tab it plays it should, though.

So what’s going on here? I take it it has something to do with the Animator and this new “Entry” state? I made a new transition from “Entry” to “Arrival” but that didn’t work. Would appreciate it if someone could help me figure this out. :slight_smile:

Edit: OK so I read in a thread from @Mike_Schoenhals, who had a similar problem, that you need to untick “Apply root motion” on the enemy prefabs. I did that, and now they animate! But now when I play the game, they stop to the left and below their spawn points! Again, when I put an enemy prefab in to the scene and play the animation from the Animaton tab, it stops at the correct position. So it’s not the positions in the animation making this happen. So still having trouble, and would appreciate any help. :slight_smile:

Hey @James27,

Do you have a link to your project somewhere so that I can download and tinker with it? There were some changes in animation going from v4 to v5. It would be helpful if I could look at your prefabs and animations.

@Justin_Abbott

I’ve sent you message with a link to download. Thanks for offering to take a look. :slight_smile:

@James27 Got it. I will take a look at it as soon as I get off work for the day.

So, I tried importing the game into 5.6.3f1, and the enemies are coming in from the background. Is that the intended animation?

Here’s video of me playing the game. If this is looking the way it’s supposed to, you may need to check your version and try reimporting the game.

@Justin_Abbott

No, they’re meant to come in from the side, kind of like in the lecture video. If you play it in the Animation tab you should see what it’s supposed to be like. If it’s anything like the version I’m using, you’ll need to put the enemy Prefab in to the scene, click “create” in the Animation tab and the animation should be there. Also, did you untick “Apply root motion” in the Enemy Prefabs? That should get you to where I’m at now, with the enemies animating but to the bottom left of where they should be. Again, if it’s like the version I’m using. Thanks. :slight_smile: