0 votes

Sometimes when I create a tileset, it works without problems, but other times, when I prepare the collisions and convert the scene as tileset, it puts the collisions in various incorrect places. When this occurs, I have to edit the xml to correct the collision positions, which is rather annoying and takes a lot of time.

Why is this happening, given that I always follow the same method?

in Engine by (91 points)
edited by

That's not a question, please reformulate. What's the bug? How do you setup your tilemap?

1 Answer

+5 votes

This is my checklist for creating tiles with collision:

  • always follow this order ( Sprite2D-->StaticBody2D-->CollisionNode )
  • CollisionPolygon2D or CollisionShape should always be at position(0,0)
  • never duplicate a CollisionNode
  • always used overwrite while exporting tiles scene
by (695 points)

Thanks for the useful list, I would have never guessed the middle two hints

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.