I’m working on a tile-based game using Tonypa’s tutorial as a basis.
I’m having trouble altering the tiles after the initial map has been built. I want to be able to change a tile into another on the fly.
_root.tiles.t_1_7.removeMovieClip();
removes the movieclip, but the array still holds the information of the clip. How can I change the array at that place?
Also, how can I use variables in a statement like the one above? I’m thinking of something like
_root.tiles.["t_"+Ytile+"_"+Xtile].removeMovieClip();
but that doesn’t work.
Can anyone help?