Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Remove tile from tilemap
#4
Are you passing the correct row and column? The following code works for me, when I press input 1, it removes the first ring:

Code:
    while (TLN_ProcessWindow()) {
        if (TLN_GetInput(INPUT_BUTTON1)) {
            Tile tile = {0};
            TLN_SetTilemapTile(foreground_tilemap, 54, 6, &tile);
        }
        TLN_DrawFrame(0);
    }


Attached Files Thumbnail(s)
   
Reply


Messages In This Thread
Remove tile from tilemap - by mycats - 05-13-2020, 08:48 PM
RE: Remove tile from tilemap - by megamarc - 05-13-2020, 09:14 PM
RE: Remove tile from tilemap - by mycats - 05-14-2020, 02:24 AM
RE: Remove tile from tilemap - by megamarc - 05-14-2020, 04:01 AM
RE: Remove tile from tilemap - by mycats - 05-14-2020, 05:30 PM
RE: Remove tile from tilemap - by megamarc - 05-14-2020, 11:52 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)