Class LevelEntry
Parent: MovingSprite
A level entry can be used as a warp target for Alex even without scripting. It has a name under which it can be referenced from a LevelExit to make Alex change places.
Events
- Enter
-
This event gets triggered when the level entry is activated, but after Alex has moved out of the warp area. That is, when this is an up-direction level entry, the event will not be triggered before Alex has completed his upwards move (but before eventual gravity is applied).
Class Methods
new
new()
Creates a new instance of this class.
Instance Methods
name
name() → a_string
Returns the name of the level entry.
name=
name=( str )
Set the name of the level entry.
Parameters
- str
The new name of the level entry.
type
type() → a_symbol
Retrieve the entry’s type. See #type= for a list of possible types.
type=
type=( sym )
Change the level entry’s type.
Parameters
- sym
-
The new type of the entry. One of the following symbols:
- C<:beam>
-
Make Alex immediately stand at the entry’s position.
- C<:warp>
-
Make Alex slowly move into the direction specified by MovingSprite#direction. This is useful for pipes.