In my game, when a button is pressed, the collision for a closed platform is enabled, while the collision for an open platform is disabled. If this is triggered while my character is inside the closed platform's area, the character would get stuck.
To prevent this, I set up a condition: if the character overlaps with the platform, kill the character. Initially, I thought this worked fine. However, in cases where two platforms are adjacent to each other, I noticed that the overlap condition rarely gets triggered when the character is running over the platforms at their junction, causing the character to die unexpectedly.
How can I resolve this issue?
Thanks in advance for your support!