Scratch for Java

Sprite::distanceToMousePointer()

Calculates the distance from the current sprite to the mouse pointer.

Examples

View on GitHub

Syntax

Java

.distanceToMousePointer()

Scratch

(distance to [mouse-pointer v])

Return

double

distanceToMousePointer()

Create Shareable URL

Select Sections