
Hi, in one of my games I'm doing a mechanic where the player can jump over fences and I was wondering how I should do it. I figured I should do a Self Switch turning it on and off when the player goes back and forth, but what if the player chooses a different part of the fence to jump over? And how would the Self Switch get turned on in the first place? I then thought variables but ran in to the same problem. Basically the player needs to be able to jump over the fence one way and then be able to jump over it backwards.

