Scratch for Java

Sprite::whenMouseMoved()

This method is called when the mouse is moved. Override this method to define custom behavior.

Syntax

Java

.whenMouseMoved(x, y)

Parameters

Name Data Type Description
x double The x-coordinate of the mouse pointer.
y double The y-coordinate of the mouse pointer.

Return

void

whenMouseMoved()