Recent posts by fiddlecrab on Kongregate

Flag Post

Topic: Game Programming / Learning to Add Multiple Levels?

@vesperbot

Any code that could send me in the right direction?

 
Flag Post

Topic: Game Programming / Learning to Add Multiple Levels?

I’m looking for a way to add multiple levels to a game for AS3. I want to start learning by adding multiple levels to the AS3 version of the Shootorial.

I was wondering if anyone could direct me to a resource that could shed light on how I would add additional levels with new values for enemies, different images, etc. in AS3.

Thanks in advance.

 
Flag Post

Topic: Kongregate Labs / Adding level with AS3?

I recently moved from the AS2 to the AS3 version of the Shootorial and I’m wondering how I would go about adding levels. I’m looking to have slightly stronger enemies each time with different graphics. Thanks for any help in advance.

 
Flag Post

Topic: Game Programming / Adding levels to Shootorial final?

I was wondering how I would go about adding levels to the Shootorial. Specifically, I would want to edit variables for EnemyShip and have new images/variables for the Bosses that I create. I’ve read about going from scene to scene and found this code:

root.gameOverMenu.visible = false;

root.gameOverMenu.playAgainButton.visible = false;
root.gameOverMenu.playAgainButton.onPress = function()
{
_root.ship.newGame();
}
_root.gameOverMenu.nextLevel.visible = false;
_root.gameOverMenu.nextLevel.onPress = function()
{
gotoAndStop(“scene 2” , 1)
}

the go down to the winGame function & say:

function winGame()
{
_root.backgroundMusic.stop
_root.gameOverMenu.winLogo.text = “Misson Completed”;
_root.kongregateStats.submit(“GameWon”, 1);
_root.missionCompletedBanner.gotoAndPlay(2);

this.visible = false;
destroyAllEnemies();
gameOver();
_root.gameOverMenu.nextLevel.visible = true;
_root.gameOverMenu.nextLevel.onPress = function()
{
gotoAndStop(“scene 2” , 1)
}
_root.ship.onLoad.bossCountdown = 3;
_root.ship.onLoad.miniBossTimer = 0;
}

But I was wondering if anyone has any input otherwise. Thanks in advance.