4.0
26 Aug 2019 11:51
int warmupTime = 0;
void onPlayerInput(jjPLAYER@ play) {
if ((play.keyLeft == true || play.keyRight == true) && play.xSpeed != 0) {
warmupTime++;
} else {
warmupTime = 0;
}
if ((play.keyLeft == true && play.direction == 1) || (play.keyRight == true && play.direction == -1)) {
warmupTime = 0;
}
if (warmupTime >= 35 || play.xSpeed > 8 || play.xSpeed < -8) {
play.keyRun = true;
if (warmupTime > 0 && warmupTime < 105 && play.xSpeed > -8 && play.xSpeed < 8) {
play.xSpeed = play.xSpeed * 0.95;
}
} else {
play.keyRun = 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.