Advertisement
Guest User

Untitled

a guest
Oct 8th, 2016
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.91 KB | None | 0 0
  1. *** 677,707 ****
  2.  // Calculate horizontal/vertical friction
  3.  if (state == CLIMBING)
  4.  {
  5.      xFric = frictionClimbingX;
  6.      yFric = frictionClimbingY;
  7.  }
  8.  else
  9.  {
  10. !     if (runKey and platformCharacterIs(ON_GROUND) and runHeld >= 10)
  11.      {
  12.          if (kLeft) // run
  13.          {
  14.              xVel -= 0.1;
  15.              xVelLimit = 6;
  16.              xFric = frictionRunningFastX;
  17.          }
  18.          else if (kRight)
  19.          {
  20.              xVel += 0.1;
  21.              xVelLimit = 6;
  22.              xFric = frictionRunningFastX;
  23.          }
  24.      }
  25.      else if (state == DUCKING)
  26.      {
  27.          if (xVel<2 and xVel>-2)
  28.          {
  29.              xFric = 0.2
  30.              xVelLimit = 3;
  31.              image_speed = 0.8;
  32.          }
  33. --- 677,715 ----
  34.  // Calculate horizontal/vertical friction
  35.  if (state == CLIMBING)
  36.  {
  37.      xFric = frictionClimbingX;
  38.      yFric = frictionClimbingY;
  39.  }
  40.  else
  41.  {
  42. !     if (runKey and runHeld >= 10)
  43.      {
  44.          if (kLeft) // run
  45.          {
  46.              xVel -= 0.1;
  47.              xVelLimit = 6;
  48.              xFric = frictionRunningFastX;
  49.          }
  50.          else if (kRight)
  51.          {
  52.              xVel += 0.1;
  53.              xVelLimit = 6;
  54.              xFric = frictionRunningFastX;
  55.          }
  56.      }
  57. +     else
  58. +     {
  59. +         xVelLimit = 3;
  60. +     }
  61. +
  62. +     if (runKey and platformCharacterIs(ON_GROUND) and runHeld >= 10)
  63. +     {
  64. +     }
  65.      else if (state == DUCKING)
  66.      {
  67.          if (xVel<2 and xVel>-2)
  68.          {
  69.              xFric = 0.2
  70.              xVelLimit = 3;
  71.              image_speed = 0.8;
  72.          }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement