Innlegg

Viser innlegg fra november, 2009

Case 10 : win and lose screen

This link will take you to my game I have created a menu, win and lose screen. What I understand so far from the examplesI need to import MouseEvent from library and convert "play" "play agian" etc into button symbo, but took me a long time to figure that out. I was unsure if I should use  import flash.display.SimpleButton on my actionscript or if I should stick to the MouseEvent . In the end I followed the examples they gave us, just to make sure I didn't make it  more difficult for me than it already is, although there were somethings that got me confused. Like creating a new to use in a new private function. For example i write startgame(); and then write private function where I use the word startgame . Thats what concerned med after typing inn varibels and constructor. I tried to understand a some bits from the example before I got a lot of help from a second year student that had me thinking, what to do next. Thanks to him I got the menu working, thou...

case 9: Sound & music

I added a Classic music as a backgroun, which came with the computer to make sure I got it right. The music background might be changed or completly removed. As for now I want to focus on the soundeffects first, so far I have added a chomp sound when the character thouches the enemy or one of the objects. I'll get to the other sounds as soon as I get case 10 to work properly.

case 7:enemy & Case 8: objects

In case 7 we were animating the enemy and have follow the main characterI had some problems or didn't really know how to link two actionscript files, but what managed to code the enemy like I did on case 3on a seperate fla file and as file. I didn't read the actionscript book on linking two scripts, but asked for help instead, since I feel I understand and learn better that way. Now the actionscript file is linked with the main script file, but the enemy is flotaing and not following the character yet. Also it doesn't have a  hitTest Object yet. Case 8 was about objects and having the character pick them up. I looked up on the examples thats were given in fronter to help me do so. I got some help from a second year student to about making the enemy and the objects hit the ground instead of floating. It's supposed to pick the fruits and avoid the eggs, but so far it picks up both. Maybe i should just drop the eggs and have  it only avoid the enemy. This is how ...