Downloads containing So I Came Back.j2as

Downloads
Name Author Game Mode Rating
JJ2+ Only: ... So I Came Back Electric Ir Battle N/A Download file

File preview

  1. void onLevelLoad() {
  2. jjSetFadeColors(50,0,50);
  3. }
  4.  
  5. void onFunction2(jjPLAYER@ play){ play.kill();   }
  6.  
  7. /**MegaMan X style WallJump**/
  8. /**Author: szmol96**/
  9.  
  10. int jumpKey = 0;
  11.  
  12. void onMain() {
  13.   jjPLAYER@ p = jjLocalPlayers[0];
  14.   p.ammo[2] = 3;
  15.   if (p.keyJump == true) {
  16.     jumpKey = jumpKey+1;
  17.   } else {
  18.     jumpKey = 0;
  19.   }
  20.  
  21.   if (jjMaskedPixel(p.xPos + (p.direction * 13), p.yPos) && p.keyJump == true && jumpKey < 3) {
  22.     p.ySpeed = -10;
  23.     p.direction = p.direction * (-1);
  24.     p.xSpeed = p.direction * 5;
  25. //    && p.ySpeed < 0
  26.   }
  27.  
  28.   if (jjMaskedPixel(p.xPos + 13, p.yPos)  && p.ySpeed > 0 && p.keyRight == true) {
  29.     p.ySpeed = 1;
  30.     p.alreadyDoubleJumped = false;
  31.   }
  32.   if (jjMaskedPixel(p.xPos - 13, p.yPos)  && p.ySpeed > 0 && p.keyLeft == true) {
  33.     p.ySpeed = 1;
  34.     p.alreadyDoubleJumped = false;
  35.   }
  36. }