jjCHARACTER class JJ2+
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.
Properties
- AIR::Jump airJump partially supported
- What the character does when jump is pressed in the air
- bool canHurt
- Whether the attack of the bird hurts enemies
- bool canRun
- Whether the character can run
- 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
- GROUND::Jump groundJump partially supported
- What the character does when jump is pressed while crouching
- 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 morphBoxCycle
- Whether morph monitors can turn a player into the character
Property documentation
AIR::Jump 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 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 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 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.
GROUND::Jump 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 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 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 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 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.