diff --git a/code/entities/player.lua b/code/entities/player.lua index 4cab434..383a7dd 100644 --- a/code/entities/player.lua +++ b/code/entities/player.lua @@ -163,6 +163,9 @@ function Player:DoPhysics() else self.vel.x = self.vel.x * (1-self.airFriction) end + + self.vel.y = self.vel.y * (1-self.airFriction) + if math.abs(self.vel.x) < self.zeroSpeed then self.vel.x = 0 end end