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.
Capx: https://docs.google.com/file/d/0B6WnVNPRul4sVVdXcExacE1NdjQ/edit?usp=sharing
I use Google Drive, I hope that is okay.