torsdag 8. oktober 2009

Case 4 - Pushing the keys


Nortrom MacFree left and right by ~SveinE89 on deviantART

In this week’s case our task was to move our character to the left and right, much like our last case, but this time using the keyboard. And when the character is not moving (when you aren’t using the keyboard) he should be in his idle position.

As mentioned this was kind of similar to our last case, but with a few new challenges, such as learning about keyboard events in ActionScript. I decided to start on a new script instead of continuing on the one from case 3. The reason is that you learn a lot more if you physically write in the new script, in comparison to just copy-pasting or editing something that you’ve written earlier or someone else has written.

I used the Learning ActionScript 3.0 book, found tutorials on the web, and got help from classmates to solve this case. After a while, when I managed to move the character and change the animation, I tried to find out how to make him jump. I managed to make him jump, but had some trouble with the animation so I decided to put that on ice for a while.

Finally I added a background to make the whole thing a bit more alive(This is not the final background Im going to use in the game).

1 kommentar:

  1. haha, ej digga bloggoppdateringa :) moar!
    ej tru ej må bestille den boka ej skreiv om i bloggen min. lifesaver!

    SvarSlett