Name | Author | Game Mode | Rating | |||||
---|---|---|---|---|---|---|---|---|
Wall Jumping Level | M y l e s | Custom / Concept | N/A |
/* Wall Jumping 1.0, by szmol96
http://www.jazz2online.com/snippets/87/wall-jumping/ */
int jumpKey = 0;
void onMain() {
jjPLAYER@ p = jjLocalPlayers[0];
p.ammo[2] = 3;
if (p.keyJump == true) {
jumpKey = jumpKey+1;
} else {
jumpKey = 0;
}
if (jjMaskedPixel(p.xPos + (p.direction * 13), p.yPos) && p.keyJump == true && jumpKey < 3) {
p.ySpeed = -10;
p.direction = p.direction * (-1);
p.xSpeed = p.direction * 5;
// && p.ySpeed < 0
}
if (jjMaskedPixel(p.xPos + 13, p.yPos) && p.ySpeed > 0 && p.keyRight == true) {
p.ySpeed = 1;
p.alreadyDoubleJumped = false;
}
if (jjMaskedPixel(p.xPos - 13, p.yPos) && p.ySpeed > 0 && p.keyLeft == true) {
p.ySpeed = 1;
p.alreadyDoubleJumped = false;
}
}
Jazz2Online © 1999-INFINITY (Site Credits). We have a Privacy Policy. Jazz Jackrabbit, Jazz Jackrabbit 2, Jazz Jackrabbit Advance and all related trademarks and media are ™ and © Epic Games. Lori Jackrabbit is © Dean Dodrill. J2O development powered by Loops of Fury and Chemical Beats.
Eat your lima beans, Johnny.