diff --git a/code/entities/player.lua b/code/entities/player.lua index f3c1847..af4d8ed 100644 --- a/code/entities/player.lua +++ b/code/entities/player.lua @@ -91,8 +91,8 @@ function Player:Smart() self.move_x = self.moveSpeed end - -- jump if on ground (coyotevalue) or if on wall (wallHit) - if Keybind:CheckDown(Keybind.move.jump) then + -- jump if on ground (coyotevalue) or if 0 + if Keybind:CheckPressed(Keybind.move.jump) then if self.coyoteValue > 0 then self.vel.y = -self.jumpImpulse self.coyoteValue = 0 diff --git a/main.lua b/main.lua index 11c24a9..3234529 100644 --- a/main.lua +++ b/main.lua @@ -50,8 +50,8 @@ function love.load() main_Player = Player:New(75,50) - Kupo:New(100,150) - Kupo:New(300,150) + --Kupo:New(100,150) + --Kupo:New(300,150) HookAnchor:New(200,89) HookAnchor:New(400,89) Fairy:New(200,88)