The game im making is a shooting game....the one problem i have encountered and cannot figure out...is how to make it go to the different lvl's ......right now it just plays the diff lvls all at once like an animation...heres some of the code although i don't think the code is the problem
CODE
startGame.onRelease = function() {
_level.level1.gotoAndPlay(2);
}
if(score>2) {
_level.level2.gotoAndPlay(3);
}
if(score>7) {
_level.level3.gotoAndPlay(5);
}
startGame is the name of a button....the score is a dynamic text box.....the (2),(3),(5)....are the frames of the scene with the background i want....ones a city and ...u know watever ... just different maps.......the only thing in the code im not so sure about is the _level ....although it was _root......before and did the same thing...so i basically gotta figure out how to make it so it doesnt just play all the frames like an animation....and MAKE it listen to the button i made....so u can only start the game if u click the startGame button....