Solarus quests  1.1
Quest maker's reference
Teletransporter

A teletransporter is a detector that sends the hero to another place when he walks on it.

This type of map entity can be declared in the map data file. It can also be created dynamically with map:create_teletransporter().

Overview

A teletransporter can send the hero to one of the following kind of places.

  • A destination entity, on the same map or on another one.
  • The same coordinates on another map.
  • The side of an adjacent map (only possible for a teletransporter placed on a side of the current map).

Teletransporters can have any size, but like all entities, their width and height must be multiples of 8 pixels. The minimum size if 16x16 pixels (the size of the hero).

Note
You can also teletransport the hero explicitly with hero:teleport().

Methods inherited from map entity

Teletransporters are particular map entities. Therefore, they inherit all methods from the type map entity.

See Methods of all entity types to know these methods.

Methods of the type teletransporter

None.

Events inherited from map entity

Events are callback methods automatically called by the engine if you define them.

Teletransporters are particular map entities. Therefore, they inherit all events from the type map entity.

See Events of all entity types to know these events.

Events of the type teletransporter

None.