Alright so you want to have the player remove a tile or change a tile to another one.
To Remove Tiles
On LMB Clicked >> Tilemap >> Erase Tile >>
X | Tilemap.PositionToTileX(Mouse.X)
Y | Tilemap.PositionToTileY(Mouse.Y)
To Change Tiles
On LMB Clicked >> Tilemap >> set tile >>
X | Tilemap.PositionToTileX(Mouse.X)
Y | Tilemap.PositionToTileY(Mouse.Y)
Value |3
Tilemap. <- Is the name of the tilemap
.PositionToTileY(Mouse.Y) <- is the command part of the code.
NOTE: Inventoryitems in the picture is what I renamed the tilemap to, for you it should be tilemap. Sorry for the confusion.
Experiment with this till it works how you would like. I wish you the best of luck in creating your game. There was no other place I could find this information so your welcome LOL
Now go create good games.
Tips: paypal: cybercode88jtq@gmail.com Thank you!