Monday, 26 October 2009

Caze 6

In this case we had to think over our story in the game, and add stuff to the story. I already created the story in the game in case 1, and the only change is that when the madman is released from the bombshelter, he will encounter his worst enemy, beans from space. :)

Saturday, 24 October 2009

Caze 5

In this case we had to create the foreground and code in physix and gravity. The character would also get a new movement, the jump. I also wanted the camera to follow the character as he moved along the screen.

However, I encountered a big problem with my character when I followed the example. When my character stood in his Idle animation in the game, he started floating up and down unexpectedly. It looked like the hitbox tot he character were increasing each time his head went up and down, and so the character levered. After much failing I found out that I had to remove a height code in my actionscript file, that caused this jmuping. And my character finally started to walk and idle normally.

Also we had to code in a jump. We could try to experiment with the velocity of the jump, and see what acceleration in the jump would fit in on our character. After a while, I found out that I wanted my character to have a not so high jump, and rather try to code in a double jump (if I push jump two times, he would jump higher) as it would increase the gameplay a bit.

Caze 4

In this case we had to make our character move on the screen when we push a keyboard button. Through some more coding, my character can now walk on the screen accordingly to left and right buttons. It also goes into idle mode if none buttons are pressed or both pressed simultaniously.

We had to write an event code, that if for example left arrow was pushed down, the arrow left would be "true". The character would then respond to this, and move the character left.

Lots of problems were encountered, but most of them were spelling and {} faulties. I solved it by mostly following the tutorial we were given from school, and learned alot.

Case 3

Finished case 3. Had to make the character move on the screen through coding. It was the first time i had been writing anything in Actionscript 3.0. And we had to try to follow another code.
Among the problems, i found that the worst enemy was misspelling any code, as it would get you an instant error.