Godot Version
4.3
Question
Hi there!
Working on a game with 16x16 tiles. I’ve successfully created a way for the player to change 1 tile to another tile (e.g., till the land), using the set_cells_terrain_connect method. It works great, changing 1 tileset to another tileset, and connecting the tiles nicely.
However, I am wanting now to, from the player’s position, create a shape (3x3 tiles) in the direction the player is facing. I can’t seem to figure it out. I did pull surrounding tiles, but then the player is caught underneath, which I don’t want.
Attached is an image showing what I mean. I’m looking to do the left part of the image. Right now I can only do the right (green is player, yellow is changed terrain).
Additionally, if creating this tile square of 3x3, I’d also like to prevent the tile from being placed if a cliff (or collision) will interact with any part of the 3x3 square. Hope that makes sense.
Can anyone point me in the right direction? Many thanks.