Hi i made a simple Space Invaders game. It works like this : enemies coming from the right if you kill one ( press Ctrl to fire laser) you get 700 points ( using _root)
If you are hit by an ememy you die and start again.
I want this to happen: if you get 70000 points, you go to another swf, wich is basically the same but with other enemies and stuff.
(Like: Level1: get 70000 points, then you go to Level 2)
How should i do this?
Well… Take the current score the player has…
currentScore to say…
Then compare that score with the current level’s score to move on…
levelScore = 70000;
if(currentScore >= levelScore)
{
// change level
}
You would then just follow the normal steps in creating an outside .swf to make another level… You might wnat to make this a function…
function changeLevel()
{
// change level score max…
levelScore += 70000;
// load up the new level .swf
// can’t remember exact code…
}
I hope this helps you out…