Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

1 decade ago by tangxuanli

guys:
when the game starting,in init: function(),
I am using :
this.loadLevel( LevelTest1 );
to start the first level.

if all the enemy killed by player,I dont know how to load the next level.
Please help me on this.thanks

1 decade ago by quidmonkey

Your main .update() should look like this:
update: function(){
    this.parent();
    if( all enemies dead ){
        this.loadLevel( LevelTest2 );
    }
}

You might want to check out the Director plugin.
Page 1 of 1
« first « previous next › last »