Hitbox changing to obscure location when switching animations

hankster112

  • Posts: 18
Normally, the hitbox around the player characters stays just that, around the player in a single box. However, when switching to certain animations (specifically when jumping and aiming to the left), the hitbox is placed at a fixed location away from the player (attached image). Any ideas what could be causing this?

Luyren

  • *
  • Posts: 2645
Tools > Game > Clean Project.

Double check the collision bounds of all your animations, make sure they are consistent and are within the actor's bounds.

Deactivate all your code for that actor, leaving only something temporary that switch to specific animations on key presses, and test that as an isolated case. From there you can determine if the issue is with your animation's settings or code messing with animations or their collision bounds.
My Stencyl resources are available here: https://luyren.itch.io/
Cutscenes, RPG Elements, Particles, Map System and many more.
Twitter

hankster112

  • Posts: 18
The hitbox for that animation ended up being one pixel too tall and that was somehow throwing the engine completely off. Computers are weird. Thank you!