Tilemap Collisions, layers and masks as well, aren't stopping other kinematic bodies

GFightingLinkGFightingLink Posts: 2Member
in 2D

As title suggests, my nodes (tried different nodes in hopes it works) won't get stopped by the collisons from the tilemap.

The tutorials are at the bottom.

I turned on the debug "show collisons" while the game runs and it's indeed highlighted properly but my player/tests don't stop the kinematic/rigidbody (in later tests) at all. I've tried moving the tilemap all over in the scene tree, I started from scratch and even that failed. I've done nothing or extra to suggest I went off the tutorials.

I went and checked out other projects and I was able to make my tilemaps with collision no problem. So, what's so different? Did I miss a simple button that everyone knows that they don't add into the tutorials? I see nothing that says I need to add a line of code or anything more than just adding the collision shape to prevent movement.

Even the Docs fail me horribly: https://docs.godotengine.org/en/stable/tutorials/2d/using_tilemaps.html#collision-shapes

more or less says it should interact immediately, but nothing happens.

project: top-down


Followed several different tutorials:
- which was only 15 seconds of what I needed
https://www.davidepesce.com/2019/10/18/godot-tutorial-7-using-tile-maps-to-create-game-map/ - which is a step by step of what I did

tl;dr: I can't make maps as the tile collision doesn't work with other nodes


  • GFightingLinkGFightingLink Posts: 2Member
    edited June 29

    I said layers and masks since that's what I started with but other projects (that I started specifically to test out why tilesets weren't working, thus their layers and masks were untouched overall) proved that it wasn't that broke the engine/me.

    I keep seeing years old suggestions on... adding rigidbodies to every tile and some such? from https://www.gamefromscratch.com/post/2015/04/28/Godot-Engine-Tutorial-Part-8-Tilemaps.aspx

    How come every single newer tutorial doesn't even come close to mentoning this???

  • CalinouCalinou Posts: 417Admin Godot Developer
    edited June 30

    Is your player being spawned in a solid shape? Judging by the screenshot, it looks like it is.

Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file