# Tonypa's Tile-based -\> delete clip problem

**URL:** https://forum.kirupa.com/t/tonypas-tile-based-delete-clip-problem/87233
**Category:** programming
**Created:** [April 19, 2005, 12:56pm UTC](https://forum.kirupa.com/t/tonypas-tile-based-delete-clip-problem/87233 "2005-04-19T12:56:44Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Cybernoid](https://avatars.discourse-cdn.com/v4/letter/c/ba9def/32.png) [@Cybernoid](https://forum.kirupa.com/u/Cybernoid)
#### Post date: [April 19, 2005, 12:56pm UTC](https://forum.kirupa.com/t/tonypas-tile-based-delete-clip-problem/87233/1 "2005-04-19T12:56:44Z")

</div>

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.

```auto

_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

```auto

_root.tiles.["t_"+Ytile+"_"+Xtile].removeMovieClip();

```

but that doesn’t work.

Can anyone help?
