My idea is that when the player is touching a wall, they'll be able to perform a wall jump. To implement this, I'm using a global variable which, when set at >0, will allow the player to wall jump. The problem I'm having is I can't find a way of dynamically changing the variable based on whether the two objects are colliding. If I set the player to 'on collision with wall' then the variable is stuck at value 1, since I can't find a way to change it back to 0 using another condition, nor can I use an 'else' statement. I tried 'is overlapping with' but that didn't seem to do anything. Anyone got ideas on how I can do this?
All help appreciated!