Phaser API Documentation

  Version: 
countActive([value])

Description:

Counts the number of active (or inactive) group members.

Parameters:

name type arguments Default description
value boolean <optional> true

Count active (true) or inactive (false) group members.

Returns:
Description:

The number of group members with an active state matching the active argument.

Type:
  • number
Since: 3.0.0