I'm back with another potentially stupid problem.

It's been bugging me for a while now. I've googled to no avail. Is there really no easier way to add collision to tilemaps, instead of having to spam "click on cell, add collision, next cell ..."? You'd really expect there to be an easier way, especially if it's beyond 3x3 minimal and multiple maps.  

Edit: It would be cool to have a brush to do this faster, or a way to draw a texture to dictate what is collide-able and what not. Not too sure how do-able the latter one is.

Unfortunately, I believe this is the fastest way to do it in Godot, though I only have limited experience with Tilemaps in Godot.

That said, one thing that I believe the new Godot hire (Groud) is planning to work on is the tile map editor, based on the Godot proposals. I would suggest looking at the Godot proposal repository and chiming in their with any improvements to the Tilemap editor :smile:

Did not know of that, and it appears there's already an on-going suggestion. If anyone else is reading this, and is having similar troubles, kindly go support this discussion/suggestion.

And thanks for the heads-up, TwistedTwigleg. ;)

21 days later

Would be cool if they add a brush that just paints collisions based on tile cell size.

sudo code


if mouse.position.inCell() and mouse_left_is_pressed:
	if Cell.has_coll:
		return
	var col = new collision_shape
	var col_shape = new rectangle_shape
	coll_shape.setSize(cell_width, cell_height)
	col.add_collision_shape(coll_shape)
	col.set_position(cell_position)
	cell.has_coll = true