i am very confused about this… the title is self explanitory…
heres a link to the game: https://arcade.makecode.com/S63482-92845-76657-74915
i am very confused about this… the title is self explanitory…
heres a link to the game: https://arcade.makecode.com/S63482-92845-76657-74915
Probably because you’re using an outdated version of tile-util
Ummm… I see what you are trying to do. I don’t know how to do it without saving the positions of all tiles.
Can I offer a few suggestions after looking at the code? I don’t think you need to set the tile map on a forever loop. I think you need all of this code to run once, otherwise you have an infinite amount of Menu BG and a lot of lag. When you open menu, do all the code you want to do, the toggle states when it is pressed again. If you have any sprites on the tile map, I would suggest getting arrays like this-
the current tilemap also has not been set so it might not work
It gets set at some point in the code. On start I think.
because the tilemap variable only gets defined if the menu is open, if the game starts and the menu isn’t open, the game trys to set the tilemap to a variable that has not been defined. I bet someone else can explain this in better words than me but this is my best shot at explaining it.