Godot Engine

Godot Engine

Legend Dec 1, 2018 @ 7:29am
Issue with Moving Platforms and One Way Collisions
I'm trying to make functional moving platforms with one way collisions enabled. Both the player and the platform are kinematic2d. Horizontal moving platforms? No problem. But if I try to move the platform vertically, two problems occur:

1. Moving down, the player "floats" 1 pixel above the platform.
2. Moving up, the player "sinks" 1 pixel below the platform, and falls through.

Has anyone encountered this before? Are there any tricks to avoid this behavior? I can avoid falling through by disabling one way collisions, but that still leaves the floating/sinking behavior and doesn't meet my design goals.
< >
Showing 1-4 of 4 comments
Mike Dec 1, 2018 @ 8:46am 
I think this is one of issues fixed with 3.1
Legend Dec 1, 2018 @ 4:15pm 
Indeed it is. But who knows when that will come out, they don't post projected release dates. I'm trying to come up with a work-around just in case it's 2020 before 3.1 comes out. XD
Mike Dec 2, 2018 @ 3:02am 
You could try using the alpha maybe. Just make a copy of the project cause once opened in 3.1 won't work with 3.0
I think you move it wrong (by changing position)
If i right try to use function
Move_and_slide()
< >
Showing 1-4 of 4 comments
Per page: 1530 50

Date Posted: Dec 1, 2018 @ 7:29am
Posts: 4