[RESOLVED] DuplicateMovieClip?
hey, im working on a project for school in flash CS3 and im the only one in the class making a game, so im pretty much alone, and im trying to make a game similar to one like ragdoll avalanche, but the spikes are coming across the screen instead of down. the names are from a tutorial i used to start it off. so... the little black ball named chevelle_mc follows teh mouse around, and when it hits the black spike, named truck_mc or truck2_mc, the screen comes up that says YOU LOSE, its named text_mc. now, im trying to get the truck movie clip to spawn at a random y coordinate, but the same x. heres teh code
Code:
chevelle_mc.addEventListener(MouseEvent.MOUSE_OVER, carStart);
function carStart(carMove:Event):void {
Mouse.hide();
chevelle_mc.startDrag();
}
//1.
chevelle_mc.addEventListener(Event.ENTER_FRAME, circleHit);
//2.
function circleHit(truckMove:Event):void {
if (chevelle_mc.hitTestObject(truck_mc)||(chevelle_mc.hitTestObject(truck2_mc))) {
chevelle_mc.stopDrag();
truck_mc.stop()||truck2_mc.stop();
text_mc.visible = true;
} else {
text_mc.visible = false;
}
}
is there anybody here who may know how to phrase it so that truck_mc gets duplicated, over and over again, with the same instance name, and with maby a random delay between 1 and 2 seconds, but have like 4 mcs on the screen at once, so it is a little more difficulthtt??:confused::confused::confused:
also, im running out of time and im starting to freak out about it cause ive spent so many hours staring at a block of code:crazy::eek::crazy:
thanks