Downloads containing walljump.mut

Downloads
Name Author Game Mode Rating
JJ2+ Only: Megaman X style walljump szmol96 Mutator N/A Download file

File preview

/**MegaMan X style WallJump**/
/**Author: szmol96**/
 
bool jumpKey;

void onPlayer(jjPLAYER@ p) {
	if (jjMaskedPixel(p.xPos + (p.direction * 13), p.yPos) && p.ySpeed > 0 && (p.keyRight || p.keyLeft)) {
		p.ySpeed = 1;
		p.doubleJumpCount = 0;
		if (p.keyJump && !jumpKey) {
			p.ySpeed = -10;
			p.direction = p.direction * (-1);
			p.xSpeed = p.direction * 5;
		}
	}
	jumpKey = p.keyJump;
}