Solarus quests  1.6
Quest maker's reference
Jumper

A jumper is an invisible detector that makes the hero jump into one of the 8 main directions when touching it.

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

Overview

The hero makes a jump when touching the jumper. Properties of the jumper include the distance and the direction of the jump.

During the jump, the hero cannot be controlled by the player, and he can traverse obstacles. You need to make sure the destination of the jump is a valid place for when the control is restored to the player.

Think of a jumper like an horizontal, vertical or diagonal line (depending on the direction of the jump: one of the 8 main directions). This line has actually a thickness of 8 pixels so that it can be handled more easily in the editor, but this thickness does not really matter: the jump starts as soon as the hero touches the jumper.

Methods inherited from map entity

Jumpers 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 jumper

None.

Events inherited from map entity

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

Jumpers 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 jumper

None.