Fence Jumping

● ARCHIVED · READ-ONLY
Started by NixasHearts 4 posts View original ↗
  1. 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.

    Event.png
  2. why do you need a switch at all?


    From your description it would be best to simply let the event be active allways, always jumping the player when he touches the fence.


    If there are some other conditions that require the switch, please tell us what they are and we can tell you how best to implement them.
  3. Andar said:
    why do you need a switch at all?

    From your description it would be best to simply let the event be active allways, always jumping the player when he touches the fence.

    If there are some other conditions that require the switch, please tell us what they are and we can tell you how best to implement them.
    But they can't get back over the fence, it's a farming game and the player jumps over the fence in to the pen, and then comes back out. Sorry if I didn't say that. I'll add that to my post.
  4. Use a conditional branch to check the direction the player is facing, make sure 'set handling' is checked, then use the 'set move route' command.