Thursday 12 September 2013

First attempt at move controls

After some practice on the tutorials I managed to write these commands for one of the sprites.

Scratch Code

When put together these commands allow the relative sprite to move left, right and to jump.
This is a basic move command set up but it can be manipulated and applied to a large variety of games and game types.

We also added a added a second sprite, which we called sprite 1 or "ground", which the first sprite had to be touching in order for the "jump" command to operate properly. This sprite required no code we simply added a few more options to the "jump" command which only make it operable when in contact with the ground sprite.

Scratch Code

No comments:

Post a Comment