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)
- Make Horizontal Barrier Sprite, and another, Vertical Barrier Sprite in Paint editor
- How to center sprite.
- Start Scripts for barrier sprites.
- Build Setup, Reset, Move, Custom Blocks (as usual!)
-
-
-
-
-
-
- Copy and rename project.
-
-
-
-
-
-
- Make “isTouch” to deal with barrier collision
- Start to fill in custom blocks with code blocks
- Use x-coord and y-coord for movement. Create variables.
- Use sensing block to determine if touching edge (H-Barrier)
- 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)
- Make Custom blocks for V barrier script
- 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
- Use sensing block touching sprite in if statement
- Play sound when barriers collide
- Hide barriers for 5 seconds then show them
- Need message to V-Barrier to make it disappear
- Need to place the Reset custom block in various places
- 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.
- Initially hide it
- invoke it when the barriers collide
- Test it — You will find a problem. Can you fix it?
- Use sensing block touching sprite in if statement
- Play sound when barriers collide
- Hide barriers for 5 seconds then show them
- Need message to V-Barrier to make it disappear
- Need to place the Reset custom block in various places
- 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)
- Thought we were “home free”. Well, not quite.
- Had to change the way the Fox detects barriers.
- 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!