Hey all - Thanks for looking!
I’ve made a tile grid:
TileGrid = { }
TileGrid[x] = { }
…within an x and y loop - and it populates the grid with lots of display.newImage();
This works fine, and I can access all the tiles on the screen. I can even add each Tile Object separately to a display group:
tileGroup:insert(TileGrid[0][0])
…I can now see the tiles.
However, because I’ve added the tile objects to the group individually, when I remove them from the tile array they stay displayed on the screen. (Because they are inserted into the display group seperate!)
Does anyone know a good way so that when I remove the tiles from the grid, the image gets removed as well? I cannot simply add the tileGrid table into a display group, it won’t let me! [import]uid: 79864 topic_id: 34417 reply_id: 334417[/import]
[import]uid: 79864 topic_id: 34417 reply_id: 136888[/import]