I’m trying to drag an Mc to a Target which then expands 5% each time it’s hit. I can’t think of where to place the
_root.mc1.removeMovieClip()
so that it disappears when hitting the Target. Now, the Target expands until it fills the entire screen… Any idea how I can do this + limit the max. size of the Target? Would that be with something like **if (_xscale - ** if so any idea where it would go?
Here’s what I’ve done so far (code on Action mc outside stage)
onClipEvent (enterFrame) {
// see if the MC hit the Target
if (_root["target"].hitTest(_root["mc1"])) {
// collision, so Target expands
_root["target"]._xscale += 5;
_root["target"]._yscale += 5;
} else {
//checks if the MC is placed in Target
_root.isTarget(this);
};
}
Then attached this to the MC
on (press) {
startDrag("", true);
}
on (release, releaseOutside) {
stopDrag();
}
Grateful for any help !
Yoss