0 votes

Hello, I'm making a little platformer to see what I'm able to do with Godot. I made my character moving ,animations, wall jump and now I wanted to make him crouch. The thing is I'm not able change the collision shape when the character is crouching. I tried to change the extents but it is centenred so my character is falling into the ground. I changed my sprite to match the extents but this solution is really not viable and it cause somme lag. Can someone help me :(
This is a video showing how the crouching is for the moment

in Engine by (12 points)

1 Answer

0 votes

Change the scale.y of the CollisionShape2D instead.

This works even with many characters. Changing theextents of one character will change the shape of all others since they all share the same shape

by (4,163 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.