Innlegg

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 ...

Case 6

Bilde
In this case we have to think through our game, other characters, and background. I searched through the web on New Zealand and kiwi. I used pictures I found as reference to draw my other characters. Based on the characters I though out on different game ideas. Most of them involved the kiwi fruit, where it has to collect a certain amount before time runs out, and avoid the enemy, or find the egg among the kiwi fruits. The enemy would either be a angry ram, lizard, hunter or farmer. I had the characters adjusted to the style on my kiwi bird, but only one of them will be added in the game. I decided to go for the lizard as the enemy, but I am considering of adding a second character if there is enough time. A background for the game has been made, but not complete. I got asked to put a the Silver fern in the game, but not sure what function it should serve. Either a part of the background or as a bonus item.

Case 5 fixed!

Case 5 is fixed and done This is my code and this is my result

Case 5

I've finished case 5, where my character is walking on a background and jumping when i press the up button. I copied some of the codes from the assignment so i could get somewhere, though it wasn't working. A second year student helped me out through this case, but was having me think how I should write the code. It helped me understand the code better, though maybe i should write comments along with the code to better understand everything in which I don't. One problem though is that it's not properly touching the ground and not playing the jump animation when I make it jump to either left or right. It only does so when it jumps while standing still. So i was trying to fix the problems yesterday, by  changing something on the while code so it would be touching the ground and not "floating". As I did it suddenly froze. I did it again today, but froze again. The problem didn't occur when I was fixing on my case 4, but only on case 5. I suspect that one i...

Case 4

This time we have to code the character so it's walking when pressing a key and doing an idle when releasing a key. I thought i was starting to understand more about coding, so i tried to make the codes on this case based on the notes i took in class on monday. I opened the flash and actionscript files that i had made on Case 3(that wasn't a smart move). Based on the notes I typed in the codes for importing keyboard events and the event listeners for keyboards. Honestly i wasn't a 100% sure what i did, and few attempted fail, i gave up and decided to see how it's done on our weekly tutorial about flash and actionscript. So far I find them more helping than reading the actionscript manual, even though they explain things too fast I made a new file only to be sure i wasn't messing up my case 3 file any further. They typed in some explanations before getting on with the code. I think it helps to understand what the codes stands for. One code we were shown was the s...