In this project you will place a flag in all the different places that you've been in Ireland or in the world!
We've created a starter project that has a map of Ireland and a map of the world. Open this starter project by clicking on the following link:
Add the sprite called 'Green Flag' from the sprite library.
To add a sprite from the sprite library follow these steps:
You can use search box or the filter links (Animals, People, Fantasy etc) to locate your sprite.
We now need to create an extra costume for this sprite, a version of it that is a red flag.
Duplicate the Green Flag costume and then use the paint bucket tool to change the colour of the flag red.
Don't forget to name the new costume 'Red Flag'!
Add the Pen Extension so that we can use the Pen blocks and then add the following code to the flag sprite to set it up for the start.
when green flag clicked
erase all
switch costume to (green flag v)
set size to (20) %
Scratch Extensions are additional sets of blocks that expand the capabilities of your Scratch projects. They allow you to:
When you add an extension to your project:
We're going to give the flag instructions so that it goes to wherever your mouse pointer is. Add the following code underneath the code in the previous step:
when green flag clicked
erase all
switch costume to (green flag v)
set size to (20) % // add the new code under here
forever
go to (mouse pointer v)
end
Test out your code and make sure that the flag is following your mouse pointer!