How do you do crawling or crouching?

I know how to like do the sprite changeing and stuff but what if you stand up while in collision with a block or smth? then your stuck

Add a point to the object, and if they are crouching, and that point is inside an object, ignore the fact that the crouch button has been released

alr thanks man…this thing doesnt let me do short answers-