TileMapLayer collisions

Godot Version

Godot 4.3

Question

Hello, i wanted to use the new TileMapLayers of Godot 4.3, but i cant figure out how to add Collision and Y-Sorting. It seems to work completely different to before where the TileMap where just used. I can only find tutorials about the old TileMap or Videos about what changd in TileMapLayer but never explained how collision and y-sorting works… Even ChatGPT cant help me, because he only knows the old TileMap… I found some options in the TileMapLayer like “Enable Collision” but it does nothing, as i cant paint any collision shapes. In my TileSet Editor the “Physics Layer” is gray and i cant do anything… (see Image below)

image

TLDR: How do i add collision and Y-Sorting to TileMapLayers?

Thank you for your help!

Hello! :smiling_face_with_three_hearts:TileMapLayer and TileMap work basically the same way, you can’t add collisions because you didn’t add a physical layer (this is the same as the old Tilemap, maybe you didn’t learn it well :wink:)You should add a new physical layer to the inspector…Click ‘Add element’…


Then go to ‘Paint’ and paint it (click on Physical Layer 0,it’s not greyed out at this point)
As for Y-Sorting, like Tilemap, enable Y-Sorting in the Inspector :upside_down_face:
THIS IS MY FIRST ANSWER,AND I just became a junior high school student.
I’ m a newbie on godot,too! :kissing:

1 Like

Hey Johnny!
Thanks alot for your answer! I found the Physics Layer and can now draw my collision shapes. This is my first time using godot, thats why i dont know much about the old TileMap :slight_smile: but its hard to find good information about the new stuff…

Thanks for your Screenshot and help!

1 Like

thanks :kissing: ,i have lerned godot for 1 month.
My english is not good :sweat_smile: