Warper

Version:

1.0

Added on:

01 Aug 2013 11:22

Tags:

Description:
This lets you warp anywhere in the level.
int TileX = 0;
int TileY = 0;

void onMain() {
  p.ammo[2] = 3;
  p.ammo[3] = 3;
  p.ammo[4] = 3;
  p.ammo[5] = 3;
  p.ammo[6] = 3;
  
  if (p.currWeapon == 2) {
    TileX--;
    jjAlert("X: " + TileX + "  Y: " + TileY);
    p.currWeapon = 1;
  }
  
  if (p.currWeapon == 3) {
    TileX++;
    jjAlert("X: " + TileX + "  Y: " + TileY);
    p.currWeapon = 1;
  }
  
  if (p.currWeapon == 4) {
    TileY--;
    jjAlert("X: " + TileX + "  Y: " + TileY);
    p.currWeapon = 1;
  }
  
  if (p.currWeapon == 5) {
    TileY++;
    jjAlert("X: " + TileX + "  Y: " + TileY);
    p.currWeapon = 1;
  }
  
  if (p.currWeapon == 6) {
    p.warpToTile(TileX, TileY, true);
    jjAlert("Warped to X: " + TileX + "  Y: " + TileY);
    p.currWeapon = 1;
  }
}