Scratch for Java

Stage::countSpritesOf()

Returns the number of sprites of the specified class.

Syntax

Java

.countSpritesOf(c)

Parameters

Name Data Type Description
c Class<T> the class of the sprites to count

Return

long

countSpritesOf()