Category:Locations

Gets the location of the mouse.

This block will get the location of the mouse wherever it is on the display. This can possibly be used to make sprites at the location of the mouse or follow the path of the mouse.

Examples

Example 1

Sprite can be created where you point the mouse. Click the clipboard sprite to "stamp" apples onto the paper.

Example 2

Sprites can follow the mouse. Click, hold, and drag the coin.

Found a bug in the documentation? Let us know at documentation@code.org