• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Legacy GM Destroy all tiles at a position?

TheBroman90

Member
I use 1.4.
I want to delete walls and floor from a room. The floor has a depth of 100, so I use tile_layer_find to get the tile to delete.
But the walls have different depths depending of where they are placed. So I thought it would be easier if I could just delete all tiles regardless of depth.
 

TheBroman90

Member
I tried to reverse engineer the code where I place the wall tiles, but I couldn't get their exact depths.
So I checked the coordinates for different depths multiple times using a for loop.
The code got a bit ugly, but it works now!
 
Top