diff --git a/examples/gameplay/moveplayer/actors/player.lua b/examples/gameplay/moveplayer/actors/player.lua index 8c962dc..caf51e7 100644 --- a/examples/gameplay/moveplayer/actors/player.lua +++ b/examples/gameplay/moveplayer/actors/player.lua @@ -8,16 +8,16 @@ end function Player:update(dt) local dx, dy = 0, 0 - if self.keys["up"].isPressed then + if self.keys["up"].isDown then dy = -120 * dt end - if self.keys["down"].isPressed then + if self.keys["down"].isDown then dy = 120 * dt end - if self.keys["left"].isPressed then + if self.keys["left"].isDown then dx = -120 * dt end - if self.keys["right"].isPressed then + if self.keys["right"].isDown then dx = 120 * dt end