0 votes

Hi! I'm a godot beginner, and I want to create a platformer in godot. I'm using Tilesets for my maps (One from kenney.nl). But when I add a StaticBody2D and a CollisionPolygon2D under it, I cannot create a collision shape by clicking anywhere, It always give me the extent points of the sprite.

I'm giving a link to a zip file of my project.
https://drive.google.com/open?id=1NY6Kdc_8IjSrBJMrHf5QhmTsL5C58seG

Is it a bug, or a mess in my part?

Any help would be appreciated.

in Engine by (25 points)

1 Answer

0 votes
Best answer

I've fixed it. As expected it is a mess in my part. I enabled the "Snap to grid" option, now (after disabling it) it's working as expected.

I'll not remove the question, because if someone having the same problem as I had, they find their answer here.

Just turn off the Snap to grid option when selecting points for CollisionPolygon2D

by (25 points)

Thanks for this! I've been looking for a solution for more than one hour.

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 Frequently asked questions and 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 [email protected] with your username.