Yo!
Today I'll be working on my start and game over screen. I'll be placing my crossbow into the screen. I'll also be working on my programming as well. I have now placed my duck, so that the arrows miss the player, but now I have come across another problem, the player can shoot and kill all enemies from ducking, losing no health. I now have to decide what to do with the player and duck, at the moment I'm thinking the player has to press down to duck, as of now the player just has to press down once and the duck function stays down. I did try to animate the duck so it stands after, but the animation kept looping making him stand, run and duck at the same time.
I've changed the game over screen, which now includes and title of the game.
With help, I had added my new game menu. I read their code for the menu and have added it to mine. I needed to add a static var newGameMenu:NewGameMenu; before adding some more code under my game's public function. This code was:
newGameMenu = new NewGameMenu ();
newGameMenu.x = 0;
newGameMenu.y = 0;
addChild(newGameMenu);
newGameMenu.visible=true; before adding an EventListener for the play button to the code to allow the play button to work. The only problem now is that the new game menu comes on but the game works behind the menu, making it complicated. My next task is to make the new game menu work before the game, not during the game.
No comments:
Post a Comment