animations problems

basically i’ve made some animations using unity animator, i put them in legacy, and here everything is good, but when death animations plays the enemies move to a generic place which is the one were i started creating animations.
example:

it’s strange… maybe is the death script? because with maya animations it didn’t gave this problem.

function Dead()
    {
        if(morto==0){
         GetComponent.<Animation>().Play("Lizard_muore");
    	 Destroy(lizard.GetComponent(AiNemico_lizard_prefab2));
    	 GetComponent.<AudioSource>().PlayOneShot(suono_morte,1);
         
    	 
    	 Destroy(gameObject,20);
    	
    	  
    	 }
    	 morto=1;
    	
    }

when you make an anim in unity ,you need to put the subject in a empty gameobject,because the position is relative.

ahhh ok, aniway i resolved in another way:
i tried to make empty gameobject with enemy in it, i remade all animations but didn’t worked, so i went for another way:
all the animations made in unity expect the death one(which i made in maya), this worked,

aniway, do you mean making the animations into the empty gameobject and not in the character?

and…yes i’m italian :slight_smile:
OT= da quanto tempo usi Unity?