Scratch Football tutorial
First two parts of the projects are described by McGuy in YouTube videos
Part 3
Add country flags
- Go to https://www.countries-ofthe-world.com/flags-of-the-world.html and download the flags you would like to have available in the game
- Now add a new sprite by selecting one of the downloaded flags
- Shrink the costume so that it fits behind one of the goals
-
Add more flags as costumes

-
Now add code to select a default flag and change the flag whenever user clicks on it

-
Duplicate the flag sprite and move it to the other goal. You can change the default flag.
Let’s end the game after 90 seconds passed
-
We will use the timer under Sensing but we also need a new variable to display stop the timer after end of the game

-
Now, within the Ball sprite context add initial setup of the timers and an “if else” statement at the bottom of forever loop. This will end the game after timer passed the limit (90sec)

The timer starts now before users can choose their flags. Let’s fix it by introducing additional step at the beginning of the game
-
Find a sprite which could work as a button and place the following code behind it

-
Now we will broadcast a new message whenever user clicks the button. Add the following code within context of the button

-
The players will have to intercept the message and . Modify the code for both of them so that forever loop starts only after the new message is received
