Hello all,
I have a physics character that I'm moving left or right with a force action. The direction is determined by a local boolean.
I would like to have the character reverse their direction when they bump into a wall by toggling its boolean. I set this up by setting an 'on collision' even to flip the boolean. The problem is that when the character touches the wall it almost always gets stuck because the boolean is flipping faster then the force has time to move it away.
Do you know of any way to have a trigger fire then wait and ignore any other triggers until some time has expired? I tried using a wait in the event but it just seemed to delay the flipping a bit(unless I was doing something wrong).
Thanks!
P.S. I'm also not looking to solve this with invisible "detector sprites", sry.