PDA

View Full Version : Removing Movie Clips for good


yopugged
12-04-2008, 07:29 PM
I have a mc called char that moves around with the arrow keys. However, when mc_char touches another mc, I want the mc to go away for good. I could simply make it's visibility false, but then when i leave the area in the game and go back to the same place, the item reappears. How do i fix this?

Kimchee
12-04-2008, 11:03 PM
I had the exact same question a little while back so here is some code that may help:

if(mc_1.hitTestObject(mc_2) == true){

removeChild(mc_2);

}