Scratch exercise 45

Auto shape drawing - simple

It this tutorial you will create a simple drawing tool that draws simple shapes when you press a key.


Complete these steps ..


1. Create a new game. Either open Scratch or if it is already open choose "File>New" ..



2. Delete the cat by right-clicking on the sprite thumbnail below the stage.



3. Paint a sprite containing only a single tiny black dot and name it "Black dot" ..



4. Add these scripts to the Black dot sprite ..



5. Press "B" to start your game. Move your mouse on the stage and press a number key (3, 4, 5, or 6) to draw a shape.



6. Can you add keys to draw 7 and 8 sided shapes?



7. Can you add keys to control the thickness and colour of the lines?