Tilemap creation collision misplaced

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Themaker482
:warning: Old Version Published before Godot 3 was released.

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?

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

Akien | 2016-04-05 10:59

:bust_in_silhouette: Reply From: puppetmaster-

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

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

batmanasb | 2016-04-06 22:51