Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- *** 677,707 ****
- // Calculate horizontal/vertical friction
- if (state == CLIMBING)
- {
- xFric = frictionClimbingX;
- yFric = frictionClimbingY;
- }
- else
- {
- ! if (runKey and platformCharacterIs(ON_GROUND) and runHeld >= 10)
- {
- if (kLeft) // run
- {
- xVel -= 0.1;
- xVelLimit = 6;
- xFric = frictionRunningFastX;
- }
- else if (kRight)
- {
- xVel += 0.1;
- xVelLimit = 6;
- xFric = frictionRunningFastX;
- }
- }
- else if (state == DUCKING)
- {
- if (xVel<2 and xVel>-2)
- {
- xFric = 0.2
- xVelLimit = 3;
- image_speed = 0.8;
- }
- --- 677,715 ----
- // Calculate horizontal/vertical friction
- if (state == CLIMBING)
- {
- xFric = frictionClimbingX;
- yFric = frictionClimbingY;
- }
- else
- {
- ! if (runKey and runHeld >= 10)
- {
- if (kLeft) // run
- {
- xVel -= 0.1;
- xVelLimit = 6;
- xFric = frictionRunningFastX;
- }
- else if (kRight)
- {
- xVel += 0.1;
- xVelLimit = 6;
- xFric = frictionRunningFastX;
- }
- }
- + else
- + {
- + xVelLimit = 3;
- + }
- +
- + if (runKey and platformCharacterIs(ON_GROUND) and runHeld >= 10)
- + {
- + }
- else if (state == DUCKING)
- {
- if (xVel<2 and xVel>-2)
- {
- xFric = 0.2
- xVelLimit = 3;
- image_speed = 0.8;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement