TOUR
PRICING
HELP
Stencylpedia
Blocks Guide
Sample Games
Developer Center
FORUMS
CHAT
#MADEINSTENCYL
EDUCATION
SIGN IN
×
Welcome back!
Username or E-mail
Password
(
Forgot?
)
C
OMMUNITY
Home
Issue Tracker
Inbox [0]
New Posts
New Replies
Search
Stencyl Community
→
Stencyl
→
Ask a Question
→
Hitbox changing to obscure location when switching animations
Pages:
1
Hitbox changing to obscure location when switching animations
hankster112
Posts: 27
March 04, 2021, 02:39:07 pm
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: 2815
March 04, 2021, 03:52:10 pm
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.
hankster112
Posts: 27
March 04, 2021, 06:01:01 pm
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!
Pages:
1