Tilemap not colliding with other objects... what is happening?

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

I am testing Godot, currently its the first engine I’ve actually enjoyed picked up but I have hit a wall. I have created a scene with 2 2D objects in it, which I save as my TileSet, TileSet

I then add a TileMap to a different scene and set the previously created TileSet as its TileSet, TileMap

I then add some objects i want to collide with this tilemap, one is a kinematic body that will be my player (when it works)… the other is just a circular rigid body with the same sprite to test if its the kinematic body thats the issue. When i press play, they just float straight through the tilemap

Video demonstration here

Please can somebody point out what I am doing wrong? I dont want to ditch this engine because I really like it… but I’m struggling :frowning:

:bust_in_silhouette: Reply From: eons

The way to create tilesets is not the usual way you make objects in scenes,:

You need to make:

-root
|-sprite
      |-static (if apply)
             |-collisionshape (polygon works best)

Look here for more about tilemaps and sets:
http://docs.godotengine.org/en/latest/tutorials/2d/using_tilemaps.html#tileset-scene

I tried this too, I actually found that if i export as XML instead of the default format it works as expected, even with the exact same scene. Possible bug in the engine maybe?

Trotski94 | 2016-10-16 19:56

That could be a bug on the xml export, I always use tres so, can’t say.

Also, try with CollisionPolygon, CollisionShape (Rectangle) sometimes doesn’t work right on the exported tileset.

eons | 2016-10-16 20:14