Today’s starter project has a gray architect’s toolbox at the top. In this box are buildingpiece sprites that the user of your software can use to create a building.
To allow someone to select a building piece sprite from the toolbox, you’ll need toprogram them so that: When a sprite is clicked, it creates a copy,or clone, of itself. The clone follows the mouse pointer untilthe mouse is clicked again. The clone stamps on the stage.
The next few videos will walk you through how to program the arch sprite. You will programthe rest of the sprites on your own. First, create a clone. This clone will becomewhat you stamp, so the building piece sprite can stay in your toolbox.
A “clone” is a copy of a sprite. The clone looks just like the original sprite and doeswhatever the sprite does. From the control menu, drag out the “createclone of” block. Click on the “create clone of” block totest what it does. It looks like nothing happens. If you clickand drag the sprite away from the toolbox, however, then you’ll see that there’sa copy underneath it. For today’s project, clones should appearwhen the user clicks on the original sprite. Go to the event menu, drag out the “whenthis sprite is clicked” block, and place it above the “create clone of myself”block. To test, click the sprite to make a clone,then click and drag the sprite to move it aside. You should see the clone beneath theoriginal sprite. Click on the stop sign to remove all the clones.
Then, drag the building block sprite back into its spot in the toolbox.
Now, it’s your turn: Make a clone of the sprite in the toolboxwith the “create clone of” and “when this sprite is clicked” blocks.