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