I have a character that has the platform behavior and I also provide the player with alternate controls using WASD (default controls still enabled to have both controls and reduce number of actions).
My problem is as follows, I'd like to stop the player from changing their direction of jump after jumping. I think a perfect case of this is in Castlevania. I tried the actions:
On Jump -- Disable Controls
On Floor -- Enable Controls.
However that ends up with the player jumping in place and not anything else. I tried it with a boolean such as below:
On Jump -- Set Bool to true
Bool true -- Disable Controls.
ON jump (inverted) -- Set Bool to False.
But that doesn't work. It works for like a second and then it stops all controls. Is there any quick way to fix this, please?
Thank you very much in advance.