0 votes

I am working on a 2D isometric tile-based game where I need to mark tiles that are owned by different players. I want to place a "border fence" in the owning player's color around the tiles that the player owns. Other requirements and limitations are as follows:

  • Some tiles are not 'flat' and have a slight overflow into neighboring tiles from the top (ie. mountain). Therefore having the border tilemap stacked on top of the terrain tilemap does not look realistic. Borders should 'wrap around' overflowing tiles

  • I currently have 20 different types of tiles and 10 different player colors. Were I to create a different tile for each border + tile type combination I would end up with 20 x 10 x 13 = 2600 different types of tiles in the tileset

  • Tile ownership will change dynamically within the game

What would be the best way to implement the border feature?

in Engine by (86 points)
edited by

Here is the related issue opened on Github:


Unfortunately, in the meanwhile, it looks like I'm going to have to create a scene that represents the tile surface and manually manage the draw order of surface items :(

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.