From Test-Scratch-Wiki

This tutorial explains how to use the pen blocks to draw with the mouse through a sprite. The following method, using a sprite that follows the mouse, creates the effect that the mouse is making the drawing.

How to Do it

Here is the script that allows you to do so:

when flag clicked
pen up
clear
forever
go to [mouse-pointer v]
if <mouse down?> then
pen down
else
pen up
end
end
Warning Tip: To make it seem as if the mouse was drawing and not a sprite, try setting the sprite's ghost effect to 100 or hiding the Sprite.

See Also

Cookies help us deliver our services. By using our services, you agree to our use of cookies.