Scratch for Java

Sprite::whenMouseMoved()

Called when the mouse moves.

Examples

View on GitHub

Syntax

Java

.whenMouseMoved(x, y)

Parameters

Name Data Type Description
x double x of the mouse pointer (world)
y double y of the mouse pointer (world)

Return

void

whenMouseMoved()

Create Shareable URL

Select Sections