We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8823628 + 79ad34d commit b99cd95Copy full SHA for b99cd95
2d/platformer/src/Actors/Player.gd
@@ -94,7 +94,9 @@ func calculate_move_velocity(
94
if direction.y != 0.0:
95
velocity.y = speed.y * direction.y
96
if is_jump_interrupted:
97
- velocity.y = 0.0
+ # Decrease the Y velocity by multiplying it, but don't set it to 0
98
+ # as to not be too abrupt.
99
+ velocity.y *= 0.6
100
return velocity
101
102
0 commit comments