- Home /
have an enemy change position on the y axis when awake (2d platformer)
Hello all I am currently trying to work on the mechanics of a Megaman / Metroidvania style 2D platformer and I am having trouble setting an enemy in the right position when it is awake and moving towards the player. The problem is the enemy is under a hardhat when asleep, but when the player is in a certain distance the enemy wakes up and starts following the player. Unity is what it seems to be is centering the sprite on the coordinates of the old sprite before the walking animation which has the enemy stuck in the ground walking in place. Is this something I can key in during the animation? I remember playing with some variables there but couldn't find them last time I was looking at it.
Comment