Saturday, 24 October 2009

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.

No comments:

Post a Comment