There is currently a BUG regarding the Tiles setting Physics → One-way collision, regardless of how the one-way direction is set. It is impossible to collide left or right in one direction, but the player can still pass through the Tiles left and right. No matter how it is set, the final result will always be one-way upward.
My Player has a top Tiles contact trigger animation set, and when using one-way Tiles, the Player will always trigger this animation. It is unclear whether this can be considered a BUG.
Please fix this as soon as possible, thank you.
ーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー
Chinese
Regarding the Tiles setting Physics → One-way collision, there is currently a BUG. Regardless of how the one-way direction is set, it is impossible to collide left or right in one direction, but the player can still pass through the Tiles left and right. No matter how it is set, the final result will always be one-way upward.
My Player has a top Tiles contact trigger animation set, and when using one-way Tiles, the Player will always trigger this animation. It is unclear whether this can be considered a BUG.
I have created a whole new project and the collision works as it should there. However in the project I have been working on for months it doesn’t work at all. I have no idea why. Every setting is the same but collision works in one but not in the other. It is very frustrating.
Thank you for the project.
I tested the project you provided, and it seems that changing the movement to up or down does not work, while left and right movements function correctly.
After trying various things, I concluded that the issue was caused by the Player node’s safe margin being set too large at 1px.
Restoring it to the default value of 0.08px resolved the issue, and everything now works as expected.
My guess is that horizontal movement is slow enough that the problem doesn’t occur, but during downward movement, the speed is high enough that within a single frame (1 FPS), the 1px safe margin causes the player to penetrate the floor.
In One-Way platforms, objects that penetrate are designed to pass through to prevent getting stuck, which explains the behavior.