Class SecretArea
Parent: MovingSprite
Secret Areas are places where the level designer has hidden special objects, like life berries or a large amount of jewels. They are usually difficult to find and display a notice saying that the player has found a secret area when it is activated by entering it.
This class cannot be instanciated; secret areas may only be created in the level editor.
Events
- Activate
-
Issued when the player enters a secret area for the first time. Subsequent entering does not cause this event to be emitted anymore.
Instance Methods
activate
activate()
Activates the secret area as if Alex had entered into it. Causes a subsequent Activate event.
activated?
Returns true if the secret area was activated already, false otherwise.