diff --git a/examples/gameplay/plateform/actors/player.lua b/examples/gameplay/plateform/actors/player.lua index 862bba9..e5966a0 100644 --- a/examples/gameplay/plateform/actors/player.lua +++ b/examples/gameplay/plateform/actors/player.lua @@ -10,8 +10,8 @@ end function Player:update(dt) self.xfrc = 480*3 - if self.keys["up"].isDown then - --self.ysp = -120 + if self.keys["up"].isPressed and (self.onGround) then + self.ysp = -280 end if self.keys["down"].isDown then --self.ysp = 120