fix: jump only the moment button is pressed

This commit is contained in:
Kazhnuz 2019-12-28 21:06:41 +01:00
parent ed6e9aca29
commit bd37d58b23

View file

@ -32,7 +32,7 @@ function Player:updateStart(dt)
self.xsp = 160
end
if self.keys["A"].isDown and (self.onGround) then
if self.keys["A"].isPressed and (self.onGround) then
self.zsp = 280*1.33
end