Hey there,
I have a map with some objects that the player can catch. When the player catches them, I want to delete them. How can I change a tile using AdvTiledLoader? Like, if it has a certain tile, I want it to become nil.
Thank you.
Change map with AdvTiledLoader
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Re: Change map with AdvTiledLoader
You can use layer.tileData:set(x, y, value) to set the value of an individual tile. See grid on the ATL wiki.
Re: Change map with AdvTiledLoader
But will it change the .tmx as well, or is it temporary? Thank you.Kadoba wrote:You can use layer.tileData:set(x, y, value) to set the value of an individual tile. See grid on the ATL wiki.
- SimonLarsen
- Party member
- Posts: 100
- Joined: Thu Mar 31, 2011 4:47 pm
- Location: Denmark
- Contact:
Re: Change map with AdvTiledLoader
It will only change the map in memory, not the TMX-file.munchor wrote:But will it change the .tmx as well, or is it temporary? Thank you.Kadoba wrote:You can use layer.tileData:set(x, y, value) to set the value of an individual tile. See grid on the ATL wiki.
Re: Change map with AdvTiledLoader
Thank you!
Who is online
Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 53 guests