My crouching animation is glitching/bouncing and i’m not too sure what to do next, I’ve tried looking it up but i haven’t found anything similar. I’ve checked to make sure the collision box wasn’t in the floor, so now I’m stuck. any help would be appreciated.
When the crouch button is pressed the player will start off the ground but as soon as it falls and touches the ground it will bounce back up. if I move it down at all it will be in the ground.
I think the problem is with your collision mask, make sure at least one point of the mask touches the bottom of the white box that your player sprite is in
If it doesn’t touch, you will have a weird bounce whenever this animation plays
I believe the problem is because in your events, first it’s checking if the player is on the floor → change animation to walking, then if shift is pressed → change animation to crouch. So the animation keeps changing back and forth between walking and crouching.
You need to add a condition to change the animation to walking if shift is NOT pressed.
Build your event like this:
player is on floor
player is moving
(Invert) shift is pressed → animation = walking
shift is pressed → animation = crouching