How to make 2 way platform work properly
Posted: Tue Aug 29, 2023 4:48 pm
Hello! I'm attempting to make a two way platform with the love.physics module, and currently the behavior is quite strange. The player will occasionally glitch through the platform, and when the player lands on the platform, the player phases through for a split second then returns to its normal position. I believe this is because I'm switching the platform shape to a trigger once the player hits the platform, not before it, causing this unresponsive behavior. Any ideas on how to improve this design would be great.
Here's the demo and full code:
Here's the demo and full code: