In the tenth and final case we had to make a startscreen, losscreen and winscreen. This mainly meant making buttons instead of movieclips, that got binded up to some mouseevents that triggered another functions. To make everything work I had to make several different functions. One to load the startscreen when booting up the game. One to remove that screen and load the game itself. Then add new ifs that would check if I died or won the game. Which then would remove some eventlisteners and load either the loss or winscreen and give us the option to restart the game. The restart button in those screens called up the remove everything function and then call the function that starts te game again, and resetting the timer and number of rumbottles collected from last game.
To make the character die I had to make some kind of a lifebar. So I borrowed a book from a classmate which had a exellent example for a hpbar. Fundation Game Design with Flash were the name of that book. Written by Rex van der Spuy. When the hpbar where done I could make my character die by attacks.
I then did case 09, as described in previous post, and finished my game!
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment