Duplicate MC-HitTest

See i wanna make a christmas special game
Before christmas is here.
So i have trouble having a duplicated MC to have a hitTest.
Im goanna make a santa claus cathcing game…

Maybe examples tutorials or explainers that are out there and can help me out.

When you duplicate a movieCLip… Do this:


duplicateMovieClip(_root.santa, "santa"+ii, ii);

ii just increments itself everytime you put a new duplicateMovie in it… I have some other ideas for you as well… But I’m starving… Hungie Hungie Homie…

lol

btw… When doing a hitTest then…


if(_root.ball.hitTest(_root["santa"+i]){}

Then just figure out some kind of loop to loop aorund the santa’s you already have on screen… And this… And you’re made… I know a way to… But am hungry… peace.

Thnaks Marz
Ill make ann example to see what i can do first.

My santa game will be a cathcer at the bottom of screen and santa’s falling.
When that happend i want the santa that got caoght to dissaper

That wil gie you a better example to know what im talking about.

Im goanna make an example now to see what happends.

When you get bcak can you help me with this.
See i have an example i found on flashkit
and well i this is a big code and not sure how it works maybe some opne can define it for mme…

The falling santa

onClipEvent (load) {
    if (_name == "ballParent") {
        _visible = 0;
        _root.array = new Array();
        _root.arraySize = 0;
        ticks = 0;
        i = 0;
    } else {
        _x = _width/2+random(550-_width/2);
        speed = 10+random(4);
        move = 1;
    }
}
onClipEvent (enterFrame) {
    if (_name == "ballParent") {
        ticks++;
        if (ticks>25) {
            this.duplicateMovieClip("ball"+i, i+10);
            _parent["ball"+i].name = i;
            _root.array[_root.arraysize] = i;
            _root.arraysize++;
            i++;
            ticks = 0;
        }
    } else {
        if (move == 1) {
            _y += speed;
            if (_y>410) {
                move = 0;
            }
        } else {
            for (i=0; i<_root.arraysize; i++) {
                if (_root.array* == name) {
                    // trace(_root.array);
                    for (j=i; j<_root.arraysize-1; j++) {
                        _root.array[j] = _root.array[j+1];
                    }
                    delete _root.array[_root.arraysize];
                    _root.arraysize--;
                    i = _root.arraysize;
                }
            }
            removeMovieClip("");
        }
    }
}
onClipEvent (load) {
    _root.array[_root.arraysize] = i;
    _root.arraysize++;
}

The collector

[onClipEvent (mouseMove) {
    _x = _root._xmouse;
}
onClipEvent (enterFrame) {
    for (i=0; i&lt;_root.arraysize; i++) {
        if (hitTest(_root["ball"+_root.array*])) {
            _root["ball"+_root.array*].move = 0;
            /:_root.score = _root.score + 1;
        }
    }
}
/CODE] 
If this can be optimized please tell me and tell me how the code works..

Please hlp me..

Maybe it would be better if i attach the file…

Any One come On i need to make this game…

Here is the file

I’ll take a look at it later tonight man!

Peace

Are you done looking at it…

Well is tonight here yet
::Yees says the man in blue and cheers to the fans beside him::

lol… Sorry man… Ended up going to a friend’s hosue til 3:30 am… lol… Just got back home…

Lemme see here… looking at code right now

After looking at it… I could come up with soemthing that’ll flow ALOT smoother and should get the effects you wnat done alot easier… But for tonight… I’m passing out now… have fun…

Peace Out Man

So are you goanna make the code for me later