Scratch exercise 38

Platform jumping

The scripts on this page can be added to a character (such as the cat) to enable him to run, jump onto and ride platforms moving above him ..

Complete these steps ..

 

1. You will need to draw simple platforms (thick coloured lines) and animate them so they move across the screen. Use a script like this ..

 

2. Your character will always be falling ("change y by -2") unless he is standing on a platform.

There are 2 versions of the script to move your character, simple and complex ..

Simple version

Complex version

In this version, the character moves forward as well as upwards when they jump ..

 

 

3. Finally, you will need to add these scripts so the character can ride the platforms ..

 

4. To develop this execise into a full game, you will need to add features such as rewards and health.