Solarus quests
1.6
Quest maker's reference
|
This type of movement makes a jump above a specified rectilinear trajectory. We call this rectilinear trajectory the baseline. To use a jump movement, you typically specify the baseline (direction and distance), and the movement will jump above this baseline. The speed is adjusted automatically depending on the distance, but you can change it if you want.
For now, the baseline can only have one of the 8 main directions. This restriction may be removed in the future.
Jump movements are particular movement objects. Therefore, they inherit all methods from the type movement.
See Methods of all movement types to know these methods.
The following methods are specific to jump movements.
Returns the direction of the baseline of this jump. The baseline always has one of the 8 main directions. 0 is East, 1 is North-East, etc.
0
to 7
).Sets the direction of the baseline of this jump. The baseline always has one of the 8 main directions. 0 is East, 1 is North-East, etc.
direction8
(number): The direction (0
to 7
).Returns the distance of the baseline of this jump.
Sets the distance of the baseline of this jump.
distance
(number): The new distance of the jump in pixels.Returns the speed of this movement.
Sets the speed of this movement.
speed
(number): The new speed in pixels per second. 0
means to set automatically a speed based on the distance of the jump.Jump movements are particular movement objects. Therefore, they inherit all events from the type movement.
See Events of all movement types to know these events.