View Full Version : Remove Movie Clip???
B3NKobe
August 11th, 2004, 03:05 AM
In my game when you finish the level it goes to a framelable saying welldone bla bla bla... except the enemys still appear moving on the screen? I dont know how to stop that..?
APDesign
August 11th, 2004, 03:07 AM
hmm, I think we need some more code. If your enemeis actions are in an onEnterFrame function you can try deleting it
delete makeEnemiesMove.onEnterFrame;
or if the enemy is just a movieclip
enemy_mc.removeMovieClip();
If you post some code, we could help some more ;)
B3NKobe
August 11th, 2004, 03:19 AM
onClipEvent (load) {
function reset(){
this._x=815; //Enemy start position X Axis
this._y=(369); //Enemy start position Y Axis
enemySpeed=random(4)+1; //Enemy speed
this.gotoAndStop(1);
}
reset();
}
onClipEvent (enterFrame) {
if (_root.spaceship.scrollStart){
this._x-=enemySpeed+_root.mainGround.groundSpeed;
} else {
this._x-=enemySpeed;
}
if (this._x<-15) {
reset();
}
if (this.hitTest( _root.spaceship ) ){
_root.gotoAndStop ( "gameOver" );
}
}
APDesign
August 11th, 2004, 03:25 AM
Where is the code that sends you to the next level screen? how many enemies are on screen at once? Where is the code that generates the enemies?
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.