Scratch for Java

Sprite::whenMouseClicked()

Called when a mouse button is pressed anywhere on the stage.

Examples

View on GitHub

Syntax

Java

.whenMouseClicked(button)

Parameters

Name Data Type Description
button MouseCode the button

Return

void

whenMouseClicked()

Create Shareable URL

Select Sections