Search found 1 match
- Mon Jul 23, 2018 7:54 pm
- Forum: General
- Topic: Player diagonal speed
- Replies: 3
- Views: 4571
Player diagonal speed
Hello friends, how do I get my player to move diagonally? Player movement code: function playerMovement() -- Contains the player movement logic if love.keyboard.isDown("w") then Player.y = Player.y - Player.speed * deltaT end if love.keyboard.isDown("a") then Player.x = Player.x ...