Movement physics/jumping on a '2.5D' planet
Asked Answered
C

1

0

Trying to figure out movement on a planet that is a thin plane, I've got left and right working and the player stays on the plane correctly but I can't for the life of me figure out how to get the player to jump correctly.

Currently the player jitters up and down when i press the jump button. Thanks for any clues on why.

Corbie answered 16/9, 2023 at 0:9 Comment(0)
C
0

Corbie In _move() your code switches velocity direction every frame if nothing is pressed.

Clive answered 16/9, 2023 at 0:43 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.