So I have a terrain script from ROjOhound and sqiddster, that I am using for my game. I am having some difficulties though. I made a event when the user clicks on a tile of a certain animation frame, it changes the frame. It works well, until the user leaves the area, then the bock re-appears like it was never altered. So my question would be how would I successfully remove the block? I have tried just destroying it, but it randomly teleports the player around the map. Recently I tried changing the opacity to 0, and if it was 0, make it not a solid, but that also didn't work. So I am out of ideas. Any help or suggestions would be greatly appreciated. The .capx is attached. Thank you, and if you need any more information I would be glad to help.
I use Google Drive, I hope that is okay.