I have a player sprite and an animation sprite. The player sprite is set to platform and is used for detecting collisions with tilemaps, enemy sprites, etc.
I want a crouch and slide feature. When the player does this, their collision box is only half as tall.
I tried changing the size of the player object, but it caused some issues. I then read that the manual says to not resize collision boxes.
I tried creating splitting it into two sprites: upper half and lower half. I figured I would turn off collision boxes on the top half when they are in a crouched state. I pinned a solid top to the solid platform bottom, but the top does not collide properly with the tilemap. The player can jump too far, and does not hit the ceiling until the bottom collides with it. I tried a few other things but it is either this result, or the top sprite prevents the platform bottom sprite from jumping at all.