- Home /
BoxCollider doesnt change position when I flip the player!
So I am creating a 2D platformer and I have an issue. I have a flip function in my script so i can flip the player depending on the key i press(when I press A look left, D look right...) but the boxcollider2D remains at the first position the one i look right even do my character is flipped to the left. Here are some photos. Thanks in advance!
Answer by Blue-Cut · Nov 13, 2017 at 04:46 PM
Your problem sounds to be a "pivot" problem. Place the collider carefully on the character body and move the pivot of your sprite, so the center of the sprite is the character body.
Thank you very much. This seems to work perfect. Can't thank you enough :)!
Your answer
Follow this Question
Related Questions
Character keeps jumping up walls 2 Answers
Rigidbody2d getting stuck when moving horizontally at random points! Can't figure it out :( 1 Answer
How can I move my BoxCollider2D ? 1 Answer
How to turn off a collider when I activate it (Basic Sword mechanic) [2D] 2 Answers
Unity 2d, player getting stuck passing over box colliders next to each other 0 Answers