Jazz2::Scripting::Legacy::jjCHARACTER class

Character profile.

Movement and ability settings shared by every player using one character, reached through jjCharacters. Changes last until the level ends. A set that isn't a character gives a copy that changes nothing.

Public variables

int airJump partially supported
What the character does when jump is pressed in the air.
int groundJump partially supported
What the character does when jump is pressed while crouching.
int doubleJumpCountMax
Most jumps the character can make in the air.
float doubleJumpXSpeed
Horizontal speed gained by a double jump.
float doubleJumpYSpeed
Vertical speed gained by a double jump.
int helicopterDurationMax
Longest time the character can use helicopter ears.
float helicopterXSpeed
Horizontal speed while using helicopter ears.
float helicopterYSpeed
Vertical speed while using helicopter ears.
bool canHurt
Whether the attack of the bird hurts enemies.
bool canRun
Whether the character can run.
bool morphBoxCycle
Whether morph monitors can turn a player into the character.

Variable documentation

int Jazz2::Scripting::Legacy::jjCHARACTER::airJump

What the character does when jump is pressed in the air.

An AIR::Jump value, AIR::HELICOPTER for Jazz and Lori, AIR::DOUBLEJUMP for Spaz and AIR::NONE for the others.

int Jazz2::Scripting::Legacy::jjCHARACTER::groundJump

What the character does when jump is pressed while crouching.

A GROUND::Jump value, the move of the character itself for Jazz, Spaz and Lori and GROUND::CROUCH for the others.

int Jazz2::Scripting::Legacy::jjCHARACTER::doubleJumpCountMax

Most jumps the character can make in the air.

Applies when airJump is AIR::DOUBLEJUMP, 1 for Spaz and 0 for the others by default. A press needs the jump key to have been up for 5 ticks, so tapping faster doesn't double jump.

float Jazz2::Scripting::Legacy::jjCHARACTER::doubleJumpXSpeed

Horizontal speed gained by a double jump.

Relative to the direction the player faces, negative values push backwards. 0 by default, which stops the player. No faster than the walking speed, or the running speed while running.

float Jazz2::Scripting::Legacy::jjCHARACTER::doubleJumpYSpeed

Vertical speed gained by a double jump.

-8 for Spaz and 0 for the others by default, negative values go up. The player rises no faster than 8 pixels per tick, the rest of the speed only makes the rise last longer.

int Jazz2::Scripting::Legacy::jjCHARACTER::helicopterDurationMax

Longest time the character can use helicopter ears.

In ticks, counted since the player last stood on the ground. Applies when airJump is AIR::HELICOPTER, 9999999 (no limit) by default.

float Jazz2::Scripting::Legacy::jjCHARACTER::helicopterXSpeed

Horizontal speed while using helicopter ears.

Relative to the direction the player faces, negative values push backwards. 0 by default. The speed changes towards it by a 32nd of it each tick, the direction keys only turn the player around, and it's no faster than the walking speed, or the running speed while running.

float Jazz2::Scripting::Legacy::jjCHARACTER::helicopterYSpeed

Vertical speed while using helicopter ears.

1 by default, 0 keeps the height. The fall speeds up towards it by a 128th of it each tick. Negative values stop a fall and then go up only while the jump key is held, slowly, so tapping it mostly hovers.

bool Jazz2::Scripting::Legacy::jjCHARACTER::canHurt

Whether the attack of the bird hurts enemies.

false by default.

bool Jazz2::Scripting::Legacy::jjCHARACTER::canRun

Whether the character can run.

true by default. Without it, the run key does nothing and the player can't run in place.

bool Jazz2::Scripting::Legacy::jjCHARACTER::morphBoxCycle

Whether morph monitors can turn a player into the character.

true by default for Jazz, Spaz and Lori. A monitor skips a character without it and continues with the next one of its cycle.