Mar 092017
 
  1. Log into Scratch and start a new project
  2. Set up gravity: use forever, change y by…
  3. Play to check that the cat falls
  4. But gravity only moves you if you are in the air,…
  5. Draw the ground on your background
  6. ScreenHunter_50 Feb. 27 11.46
  7. You only want the cat to fall if is not touching the ground
  8. Use: if, not, touching colour… inside the forever loop
  9. Play to test it out and drop the cat in different places to check that it works.
  10. ** What happens if you put the cat under the ground?!  Why?
  11. Now add some floating levels of the same colour and test again
  12. ScreenHunter_51 Feb. 27 11.53
  13. Add keyboard controls:
    1. Left/right: use when left key pressed; change x by
    2. Jump: use when space key pressed; change y by…
  14. Test your game
    1. What works well?
    2. Even better if…
    3. Can you think of solutions to you even better ifs?

Next level

  1. Where do you want your sprite to start?  Use the go to x _  y _ block when the green flag is pressed to start at the right place.
  2. Add an end place in a different colour to the platforms.
  3. Draw a new background.
  4. Use: forever, if, touching colour, next background
  5. Test your game.

Collect shapes

  1. Make a new sprite for the character to collect, eg star, banana…
  2. Place it where you want it to be.
  3. Only do one – when you have programmed it, you can duplicate more
  4. Use: when green flag pressed, show, forever, if, touching sprite, hide
  5. ** Create a variable called score
    1. set it to 0 at the beginning of the game
    2. make it add 1 every time you collect an item

Baddies

  1. Create a sprite for the character to avoid
  2. What will happen when you touch it? (Hide sprite and change background to “Game over”…)

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

This site uses Akismet to reduce spam. Learn how your comment data is processed.