.state()
The function .state() will return the state property of an object. Most commonly, .state() is used to find the game's current state. The function takes in no parameters.
var state = $this.scene.state();
//sets 'state' to the current state of the 'scene'
See Further:
- Meteors Deluxe