My Second Game

Welcome to the next experience in our series, Let’s create your Second Game — an extension of the first game.  You will make the previously static barriers move and deal with the problem (opportunity) when they collide.  There are four videos in this course.

Video #1 – Make the Barriers Sprites (Updated 22SEP2018)

  1. Make Horizontal Barrier Sprite, and another, Vertical Barrier Sprite in Paint editor
  2. How to center sprite.
  3. Start Scripts for barrier sprites.
  4. Build Setup, Reset, Move, Custom Blocks (as usual!)
                1. Copy and rename project.
  5. Make “isTouch” to deal with barrier collision
  6. Start to fill in custom blocks with code blocks
  7. Use x-coord and y-coord for movement.  Create variables.
  8. Use sensing block to determine if touching edge (H-Barrier)
  9. TEST it to make sure that it works.

You only learn if you explore yourself!.  Just “spectating” won’t work!

Video #2 – Code the Vertical Barrier (Updated 22SEP2018)

  1. Make Custom blocks for V barrier script
  2. Do not need isTouching” block (it’s already in H-Barrier)

You only learn if you explore yourself!.  Just “spectating” won’t work!

Video #3 – Collision Code, and Messages

  1. Use sensing block touching sprite in if statement
  2. Play sound when barriers collide
  3. Hide barriers for 5 seconds then show them
  4. Need message to V-Barrier to make it disappear
  5. Need to place the Reset custom block in various places
  6. Make sure you understand how the messaging works — very important!!

You only learn if you explore yourself!.  Just “spectating” won’t work!

Video #4 – Make “Go Go” Sprite

Make 5 min Go-Go sprite, Code it and finish up some details.

  1.  Initially hide it
  2. invoke it when the barriers collide
  3. Test it — You will find a problem.  Can you fix it?
  1. Use sensing block touching sprite in if statement
  2. Play sound when barriers collide
  3. Hide barriers for 5 seconds then show them
  4. Need message to V-Barrier to make it disappear
  5. Need to place the Reset custom block in various places
  6. Make sure you understand how the messaging quirks — very important!!

You only learn if you explore yourself!.  Just “spectating” won’t work!

Video #5 – Scratch: My Second Game Addendum (Fix and Review)

  1. Thought we were “home free”.  Well, not quite.
  2. Had to change the way the Fox detects barriers.
  3. Finished this game, but there are many changes that you can make to improve it.

You only learn if you explore yourself!.  Just “spectating” won’t work!