Advertisement
Coinage

Ghost

May 17th, 2015
255
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.86 KB | None | 0 0
  1. if (faceid[p] == 39)
  2.                             {
  3.                                 if (hor == 1)
  4.                                 {
  5.  
  6.                                     if (blocks[0, X + 1, Y] == 69 || blocks[0, X, Y] != 0)
  7.                                     {
  8.                                         teleport(users[p], X + 3, Y + 1);
  9.                                     }
  10.                                 }
  11.                                 else if (hor == -1)
  12.                                 {
  13.                                     if (blocks[0, X - 1, Y] == 69 || blocks[0, X, Y] != 0)
  14.                                     {
  15.                                         teleport(users[p], X - 1, Y + 1);
  16.                                     }
  17.                                 }
  18.                                 else if (jump == true)
  19.                                 {
  20.                                     if (blocks[0, X, Y - 1] != 0)
  21.                                     {
  22.                                         int newY = Y;
  23.                                         empty[p] = true;      // Random bool I need
  24.                                         while (empty[p] == true)
  25.                                         {
  26.                                             if (blocks[0, X, newY - 1] == 0)
  27.                                             {
  28.                                                 teleport(users[p], X + 1, newY);
  29.                                                 empty[p] = false;
  30.                                             }
  31.                                             else
  32.                                             {
  33.                                                 newY = newY - 1;
  34.                                             }
  35.                                         }
  36.                                     }
  37.                                 }
  38.                             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement