- Home /
Why enemy animation messes up the player ?
Unity 4.3, mecanim(animator) animations (legacy don't work - the sprites are on the keyframes but nothing happens), 2d game : The player shoots in front, when you hold W key another animation enters(a sprite) showing the character holding his gun upwards(and shooting in that direction if you press a fire button) - also on this animation the bullet spawn point changes it's position accordingly. There is also an enemy that gets destroyed after 5 bullet hits. Now here comes the problem: AFTER the enemy is gone the player's bullet spawn point remains always in front shooting from there even if the animation shows the player shooting upwards and even if the animation contains the position change of the spawn point. VERY IMPORTANT to say that this happens if i make one animation(or more) for the enemy(animator component). Animator component all by itself added to the enemy it's all right, but if i make at least one animation for the enemy is no good. Is this a bug, am i missing something; what could be the connection between the player and the fact that the enemy gets an animation clip ? Any idea, similar experience, suggestions ? Thank you !
Your answer
![](https://koobas.hobune.stream/wayback/20220613124255im_/https://answers.unity.com/themes/thub/images/avi.jpg)