Mouse Movement
This video shows you how to move a sprite around the stage in Scratch using the mouse.
Scratch programming concepts covered include:
- Use of the green flag control block to initialise the application by clearing the stage and setting the sprite down in the middle of the stage with the pen down.
- Using the point towards motion block to make the sprite point towards the mouse pointer and the distance to sensing block to work out how far away the sprite is from the mouse.
- Creation of a forever control block to control the sprite and addition of a conditional if control block and a more than number block to work around a problem with the script.
© redware research limited 2007, 2009.