A Little Info :P

Hi all :)

This is my IST Blog. It will be used a documentation of all my progress this year :)

Thursday, October 20, 2011

Key Moves

The basic moves for any game is the ability to move up, down, left and right.  This tutorial was based on applying this key moves to sprites/characters. In this case i have used a basic car.

Upon finishing your sprite's script it should look something like this:

Once these functions have been added, your sprite should move according to which key is pressed. Here is a set of pictures indicating how the sprite should move according to just these scripts.

It should start of like this:
When the up arrow is pressed it should move to point in this direction and possibly move 10 steps.

When the down arrow is pressed it should move to point in this direction and possibly move 10 steps

When the left arrow is pressed it should move to point in this direction and possibly move 10 steps

When the right arrow is pressed it should move to point in this direction and possibly move 10 steps

No comments:

Post a Comment