Hi,
I have setup an FSM called Jump Manager (screenshot). Basically im trying to make the player jump by pressing the space bar.
1. Player presses Jump (space key) from player FSM
2. Send Event to FSM called 'jump manager'
3. Listen event
4. Raycast to see if player is touching ground
5. Jump event
6. Delay 1 sec whilst player is in the air (just so next raycast doesnt start before lift off)
7. Raycast to see if player is touching ground
8. Send event back to player FSM
The solution above works, however, the problem is when i test, the player jumps smoothly up and down until like the 4th jump it doesn't carry on working like before. It just delays a bit longer when touching the ground. Causing it to not jump straight away again?
Not sure what's causing this? or is there another way using a similar method.
Thanks
Nick