Well that’s too easy!
In this step, you will add platforms to land on. Jumping on them will avoid falling in.
Create a Platform 1 sprite to land on.
Paint a costume for your Platform 1 sprite.
Tip: If you want your sprite to bounce
without the costume appearing to change direction, you will need a costume that is symmetrical, or set the rotation style to Don’t rotate.
Add code to your Platform 1 sprite to get it moving.
You may need your Platform 1 sprite to point in direction
0
to move up and down the screen.
Test: Click the green flag and make sure your platform moves correctly.
Duplicate your Platform 1 sprite and name it Platform 2 .
Choose: If you want to have 3 platforms, duplicate the Platform 1 sprite again and name it Platform 3.
Experiment with the number of steps and the sprite size to make each platforms easier or harder to jump on.
Detect if
your character sprite has landed on a platform sprite and is safe, else
your character sprite has fallen in!
Add code to your character sprite to sense if touching
a colour on the platform sprites.
Choose: If your platform has multiple colours, choose which colour your character needs to land on. You might want them to fall in if they are only on the edge!
Test: Click the green flag and make sure your sprite can ride on the platforms.
Add code to your character sprite to sense if
touching
the backdrop colour, then end the game.
Test: Play your game and try missing a platform. Make sure you hear the lose sound.
Add code to your platform sprites to stop them moving when the character sprite reaches the End platform — or falls in!
Test: Play again and make sure the platforms stop when the game ends. The game ends when you reach the End platform, or when you fall in.
Debug: