Jump to content
This forum will be closing down. Please move to the respective dedicated project forums.

How to remove tiles form TileMap?


Luke JL
 Share

Recommended Posts

Hello,

I'm trying to make a strategy tiled-based game, where each tile can be terrain or building (eg. road, meadow, forrest, road, farm, barracks, woodcutter hut etc.)

 

I want to create a user interface, where player would have various tools e.g. "build", "bulldoze/destroy" so that he/she could change the landscape of the game and create buildings etc..

 

Technicaly -  to put new tiles on map I'm using map.putTile. And this works OK.

 

But... How can I remove a tile? The problem is I don't see in TileMap an option to remove tiles, so I started wondering: am I doing it wrong? Should I use TileMap to create objects like farm or road that can be destroyed during gameplay?

 

Or maybe there is a way to remove an individual tile from map?

 

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...