- Home /
HitBox's Box Collider 2D is not following its parent Enemy sprite
Hello there, good day to you all. I have just jumped into Unity from Love2D and facing some problems with HitBox Collider. I have created a HitBox collider for the Enemy Sprite and animated it so that it follows the enemy(frame by frame) while attacking the player. In Animation panel, on playing the animation i get the result(as shown below):
But, when i start the game it is giving a weird behaviour(as shown below).
But for my Player (on playing the game) it is working just fine.
I have tried to Curves > Both Tangents > Constant (for all frames in Animation Panel) as someone was suggesting it but it didn't work for me.
Your answer
![](https://koobas.hobune.stream/wayback/20220613061413im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Why does my sprite change size when in game but not when in scene? 0 Answers
Flipping sprite by y axis when rotated past a certain point., 1 Answer
Is there a way to create random polygonal sprite in script? 0 Answers
How to change sprite only on click or during shoot state? 1 Answer
Unity 2D problem with displaying sprites in final build game 1 Answer