#Questions about Tilemaps

10 messages · Page 1 of 1 (latest)

compact blaze
#

First, to start off, Godot 4 is a MASSIVE improvement over Godot 3 in terms of TileMap functionality. An actual layer system alone was more than enough for me to want to switch. With that out of the way, I have a few minor questions.

Question 1. With custom data layer, is it possible to have tiles that can be collision detected and return TileData? In instances where I have a ladder tileset I want to terrain paint, or is something like that only for the tile scenes functionality?

Question 2. With scene tiles, my understanding is that they're painted as children of the tileset instantiated on start. If I have a tile with a script attached and I want to edit some exported value in that script, that doesn't seem possible per scene tile in the editor?

alpine current
#

I don't understand question 1
For question 2, I don't think it's possible, but I'm making a tilemap plugin where this will be, along with a myriad of other features

compact blaze
# alpine current I don't understand question 1 For question 2, I don't think it's possible, but I...

Gotcha, for 2 I can probably just have a script that'll grab them from the tile map and fill in the data. I'm working on a mario world platformer so the scene tiles in question were level spaces
To better explain 1. I want to be able to make tiles with custom tile data like say an int. I want to have the player be able to collide with these tiles and associate that int with "ladder" then be able to move up and down accordingly. I can do this with Scene tiles but a normal tile with custom data allows for terrain painting which would be useful for spikes, ladders or other like objects water etc

#

My issue is, I've not been able to find a good way to get a collision to occur with those specific kinds of tiles

alpine current
compact blaze
#

Anyways, thanks for those answers 🙂 perhaps others can come along with a better idea for 1.

#

But I've got a much better footing

grave night
compact blaze
#

Yeah seems like it is for getting the tile data. I think a good wrapper / utilities class could help this.