I have coded a shop that the main character can enter by pressing up when overlapping with the shop and purchase goods, is it possible for the character to get sent back to the original tile map with it in state that they had left it before going to the shop (ex: vault door open)?
forgot to share the link to see what code i already have https://arcade.makecode.com/S55757-09408-26925-46882
I don’t understand. could you provide an example?
There are ways to kinda-easily save which things are changed on a tilemap, but that would take a lot of code. The easiest solution I can think of is to just make one large tilemap, with the main one and the shop combined, and then teleport the player between the two. If that solution doesn’t work for you, you can try to see how I saved coins and gates in my Teeny Tiny Cat game. It’s been a while since I looked at that code, so I don’t know how easy it is to understand. If you can’t get it to work, I can give you a better explanation.
That makes this easier. I’ll look at it when I get home and let you know if I see an easier solution.