In Scratch one of the coolest functions is sensing the mouse cursor. You can use it to draw, (see the tutorial “Pen” for drawing on Scratch) you can use it to move and much more! To make a sprite move to where the mouse is, use only a couple of blocks! Here’s how;
Drag over your green flag, change sprite and everything,

Bring the “if <> then” to the area,

Drag the “mouse down?” block from Sensing into the “if  <> then” block,

Bring over the “forever” loop inside the “if <> then” loop,

Drag over the “point towards mouse pointer” from Motion into the loop,

Bring the “move 10 steps” block under the “point towards mouse pointer” block,

That’s it!

Now when you move the mouse, the sprite moves with it!

By the way, you can also see our Google+ profile, which is public now, and we will be launching a newsletter soon!

Leave a Reply

Your email address will not be published. Required fields are marked *