Innlegg

Viser innlegg fra 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 ...

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

Case 3

My case 3 blog is probably the last blog to be published within my group, and probably very late too. So I have to write Actionscript file to make my character walk from right to left. I've hade written any Actionscript code then so I took some notes in class, and read through the first chapter in "Learning Actionscript: Beginnners guide", but only made me confused. I didn't understand much the notes i had taken in class either. Some days later we got an instruction on how to write our actioncscript. I started simple and made a square, saved it first with the name square, since my kiwi character wasn't made into a sprite then. I had some problems moving my character forward, but when I got help,i was told to name it "Document". It made things easierd, but didn't help me much to understand the actionscript code. After a few syntax errors and overlooked mistakes I finally made my square move back and forth. As soon as i made a sprite of my charac...

Case 2: Animation

Here are my animations on Case 2 Walk Jump Idle I Idle II

Case 2: Sprite

After some help from a friend, i figured out I didn't really do anything wrong, but couldn't find the sprite after opening the file. I found in "Library" and voila, every movement was still there, only had to fix a bit on the positions. Though very annoying how the file opens, it almost had me going insane.

Case 2

Case 2 which was a week ago, is about animating the character, converting it to symbols, and then make it into sprites. I tried to experiment with the different tweens and the bone tool, and read  "how to cheat  in flash CS4" to get to know the tools i'm using. I tried the bones tool, but after a few failed experiments, including a tutorial from school, I gave up, and decided to use the motion tween instead. So I made the character in four layers (head, body and feet) and put keyframes on where the animation was going to end and set the character's feet in motion tween. The body and head was put in classic tween. Sadly after it was finished, the character looked like it was either jumping tripping or skipping and not really walking. Also the time line was really messed up after editing the feets postion all the time. The character was remade from scratch, but more simple and less fancy colour effects and used only the classic tween , since it was easier to use and...

Case 1

Bilde
We have a class called Animation and interaction were we have to make a game, by using flash and actionscript. We have 10 cases to go through, and have to write a blog.  Our first case is to create a character, and a game, and get to know the tools like, pen, brush and pencil on Adobe Flash CS4 I decided to make a kiwi bird as my character, and drew a few sketches on photoshop CS4. At first i tried to stick to amore realistic version , but since i'm very new to Flash CS4, i went for a more simple desing. There i decided to keep the features of the kiwi in mind, like it's long beak and no wings. Though i know the kiwi has long legs, I decided to make it limb less. I think it would be a lot more easier to animate to make it jump walk, and do other stuff. The game idea hasn't been fully decided yet, but i think of making a game that can exploit the kiwis abilities and features or what it's lacking. So far i have one idea where i can make my kiwi fly as far as pos...