Yo!
Back from Half Term and good news.......my game is in next week!! Today is really me fixing little bugs, which include, text, when the enemy dies, and the winning screen, such as when the game ends the player can still shoot and get points when there is now enemies, and finally the run, they still have a static run when the player pressing down the left or right. My sound is also a little out, as the enemies cries are out a little.
I've changed the positioning of the sound in the Explosion Code, as it was like:
function Explosion()
{
addEventListener("enterFrame", enterFrame);
}
function enterFrame(e:Event)
{
if(this.currentFrame == this.totalFrames)
{
removeEventListner("enterFrame", enterFrame):
stage.removeChild(this):
var s = new ExplosionSound();
s.play();
} This meant the sound played after it had gone, so I changed it so it is now under the function Expolsion() after the addEventListener("enterFrame", enterFrame);, so now when the Explosion is on the screen, then the sound is played, the way it's meant to be.
I just debug my game (again) and it has the same problem as when I last debug (try and read Easter Half Term - 11/04/2011 blog for information on the errors (or if you are too lazy to read the blog post they are :
Boss/kill, Boss/takeDamage, Game$/winScreen and Bullet/enterFrame)
To stop the player to keep shooting, I decided to add the code ship.visible = false; meaning the ship will disappear after the Winning screen has been shown, but the player can still shoot and get more points. Also the power up timer still runs. I've fixed the score update, all I had to do was change the fonts......really? Wow, so simple and it's took me this long to fix!!!! Yeah, so I had to change the font from comic to Lucida Calligraphy that was it, fixed instently.
I've managed to fix the winning screen bug with the player getting more points after the game, this was a simple adding of code which was if(Game.ship.visible == true) I then added this under the if(Key.isDown(Keyboard.SPACE) && shootLimiter >15) {
Like the image below
The only bug left to fix is the run and that is it!
No comments:
Post a Comment