-
Question
How could I make it so when I certain score is reached from blowing up your enemies that it takes you to w.e frame you choose. You guys have a tutorial for this if your using a button but not this way. I want it to be when the player reahces the score I set to take them to the next frame/scene, and there score gos up by shooting enemies not clcikg a button.
-
run a coded loop until scoreVariable is reached then stop loop.
Code:
this.onEnterFrame = function(){
if(scoreVariable>1000){
gotoAndPlay("framelabel");
this.onEnterFrame = null; // stop checking
}
};