Top

Secret Chronicles of the Scripting API documentation

Class Fireberry

Parent: Powerup

Fireberries are powerups that grant Alex the skill to throw fireballs agains enemies. Fireberries don’t move by default.

Class Methods

new

new() → a_fireberry

Creates a new fireberry powerup with the default values.

Instance Methods

activate!

activate!()

Apply the item to Alex. Doing so will destroy the fireberry in any case, but note that applying it does not necessarily cause it to have an effect on Alex (use LevelPlayer#type= for that). Instead, it may be stored in the item box, or even just have no effect if that is already full.