Scratch for Java

Sprite::whenBackdropSwitches()

This method is called when the backdrop switches to the specified name. Override this method to define custom behavior.

Syntax

Java

.whenBackdropSwitches(name)

Parameters

Name Data Type Description
name String the name of the backdrop to switch to

Return

void

whenBackdropSwitches()