fix: jump only the moment button is pressed
This commit is contained in:
parent
ed6e9aca29
commit
bd37d58b23
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ function Player:updateStart(dt)
|
||||||
self.xsp = 160
|
self.xsp = 160
|
||||||
end
|
end
|
||||||
|
|
||||||
if self.keys["A"].isDown and (self.onGround) then
|
if self.keys["A"].isPressed and (self.onGround) then
|
||||||
self.zsp = 280*1.33
|
self.zsp = 280*1.33
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue