UPDATE:
|
The instructions below are for the older Scratch 2.
For the newer Scratch 3 instructions, click here. |
Frogger - Part 3In this section we will:
|
|
Keeping track of Lives
This video shows a new way to communicate between scripts using:
We haven't made a "broadcast" before, so, you'll need to get them from the Control palette.
|
|
BEWARE: There's a strange TYPO in the code of this video (#14).
Can you find it before the next video?
Can you find it before the next video?
Stop the Cars!
|
|
BEWARE: Making this script work will have unintended side-effects!
Oh no! The cars are not moving!Well, we thought this was a great idea to have the cars stop when the frogger died. But now, we've created another problem. The best part is that our solution is simple and will save us work later! |
|
Stop Cars on "Level Up"If the cars can stop moving when the frogger dies, shouldn't they also stop when the frogger reaches the finish area? |
|
Adding visual effectsWhat does a dead frogger look like? Hmmmmm.... Add a new costume. Switch to the right costume at the right time. |
|
Changing
|
|
Add Cars on
|
|