Making a platforemer character detect ledges

Before proceeding, please use the forum search feature at the top of the page to check if your question has already been answered.

How do I…

I’m trying to make it so that when a platformer character (blueBug) reaches the end of a platform it changes direction and won’t fall off.

What is the actual result

Instead the character constantly flips no matter what. I’ve tried using a trigger once condition but that won’t work as it just causes the blueBug to flip its starting direction and then keep moving.

Related screenshots


the only code relating to blueBug


blueBug’s points

If anyone has any ideas then that would be greatly appreciated

The issue is with the inverted point inside platform condition. It’s saying “Is the point not inside a platform”. And the answer is yes, the point is not inside all the other platforms that the blue bug is not standing on.

You want to use the NOT condition instead, which takes the logical result of the condition and inverts it (which means NOT true is false, and NOT false is true):

thanks. I did not know that NOT was a thing so thank you for explaining that as well