We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 85af07b commit ab9e58cCopy full SHA for ab9e58c
src/Testing/PlayerMovement.kt
@@ -41,7 +41,7 @@ class PlayerMovement : Component() {
41
if (Input.isKeyPressed(Keys.SPACE)) {
42
physicsBody.addForce(Vector2.up, 120f*UpdateThread.deltatime)
43
}
44
- Main.getScene().camera.position = Main.getScene().camera.position.add(parent.position.subtract(Main.getWindowSize().devide(2)))
+ Main.getScene().camera.position = parent.position.subtract(Main.getWindowSize().devide(2))
45
46
catch (e: Exception){
47
e.printStackTrace()
0 commit comments