Wednesday, October 19, 2011

Key Moves

In this activity we have to try and make our sprite move by using the arrow keys. I have followed the instructions and successfully have made my sprite move through my direction of pressing the arrow keys: here is a screenshot below,
You might be thinking, how does this work? Well it is really easy as you can see there are coloured bars along the left hand side of the screen. Theses are the basic steps taken to make my sprite move. The first step is "when UP ARROW key pressed" " Point in the direction 0" this simply means that when you press the upper arrow to make it move upwards just like they do in pacman. then afterwards you make directions for every arrow and in no time at all  you will see that your sprite is moving around the page :)

No comments:

Post a Comment