ChristianDeguara / SpaceInvader

The game will have an introduction Intro Menu where the user will have “New Game” and when the user clicks on the button “New Game” it will redirect the user to register page were the user needs to input his USERNAME and press start game. Once the game starts the USER will have to survive 3 waves of Invaders which will start to attack him and if they will hit him the USER will start losing Health Points. If the USER will lose all Health Points the game will redirect the USER to the GAME OVER screen otherwise if the USER will successfully finish all the levels the game will redirect him to the CONGRATULATION screen. And In the Menu the USER can Click on the Quit button and Close the game.
0 stars 0 forks source link

GameController needed for aliens issue (when aliens die new level starts) #1

Open ChristianDeguara opened 11 years ago

ChristianDeguara commented 11 years ago

PROBLEM:

function Update () {

}

ChristianDeguara commented 11 years ago

FIX:

function Update () { var numberOfAliens:int;

if (numberOfAliens <=0) { if (Application.loadedLevel > 0 && Application.loadedLevel < 4) { Application.LoadLevel(Application.loadedLevel+1); } }