Top

Secret Chronicles of the Scripting API documentation

Class Flyon

Parent: Enemy

The Flyon jumps out of its hiding and attacks you. It then quickly returns into its typically unreachable hiding and waits a number of seconds before it tries again.

Note the flyon is one of the rare objects that makes use of its starting position coordinates. They define the actual position the flyon is returning to after a jump; the normal coordinates merely determine where it is currently.

Class Methods

new()

new() → a_flyon

Creates a new Fylon object with the default values.

Instance Methods

distance_to_end

distance_to_end() → a_float

Current distance to the end position, in pixels.

image_dir

image_dir() → a_string

Retrieve the path to the directory where the pictures for the flyon are taken from, relative to the pixmaps directory.

image_dir=

image_dir=( path ) → path

Set the directory used to retrieve the pictures for the flyon.

Parameters