Monster Racer Rush
Select between 5 monster racers, upgrade your monster skill and win the competition!
4.18 / 5.00 3,534 ViewsBuild and Base
Build most powerful forces, unleash hordes of monster and control your soldiers!
3.80 / 5.00 4,200 ViewsWhen I have the character move from one frame to the next, IE a new level, Several MC's from the previous frame show up on the new one. Like when the frame changes to the game over screen, the enemies will fallow to the next frame, and be walking across the game over movie. I don't know how to get rid of this, Do i need to make an entire new scene for each level, Because the same happens when i have the character maybe move to a previous frame, ie to like roam the several sections of the game. Then the enemies or several other random movie clips will fallow. any help will be appreciated.
-scuddle
You need to remove the movieclips when you're done with them.
AS2:
targetMC.removeMovieClip();
AS3:
stage.removeChild(child:MovieClip);
MSN/Email-> kevin.stubbs@live.com -Need artists!
The 9th Legion
(Looking for somebody to create the site for $$$).
At 3/31/10 07:01 AM, AdmittingZero wrote: You need to remove the movieclips when you're done with them.
AS2:
targetMC.removeMovieClip();
AS3:
stage.removeChild(child:MovieClip);
Why is it that happens? Is there a way i can make them not fallow to the next frame? besides having to remove each enemy. and what defines, which MC's will fallow over to the next one? Will making a new scene change anything? Sorry for all the questions.
Okay I think i got it. I didn't want to have to manually unloadmovie every time i made like a warp point. so i made this short code i put on each item.
onClipEvent(load){
assignedarea = (1,2,3,etc);
}
onClipEvent(enterFrame){
if(assignedarea == _root.area){
}else{
this.unloadMovie();
}
}
and at the beginning of each frame i just put area = (1,2,3,etc);
and WOOP! problem solved! so far it seems to be working just fine.