A more dynamic hitbox

Dirk

Member
At the moment, at least to my knowledge, you can't resize the hitbox.
1) This a problem if you for example want to make a character that might change his size like small Mario and big Mario. The smaller Mario can run through 1 tile high tunnels, while the big Mario can't.
You might want (like I do) make your character able to crouch and get to areas this way.
2) Theres also another problem... my character is 3 sprites wide. His hitbox overlays sprite 2 and 3. If he faces the other direction the hitbox is not mirrored, so instead of sprite 1 and 2, sprite 2 and 3 are still being covered by the hitbox. If you walk against a left wall from the right his face will be in there. The only "solution" now is to make the hitbox smaller and/or symmetrical.
3) Another problem... my character jumps, and where does the hitbox go now? My player is a dog and when he jumps his tail goes down, basically now the hitbox covers air and a bit of his legs. I want to move it up when he jumps so his legs are covered when he jumps.

forum_dynamic_hitbox_01.png
 
Top Bottom