I am trying to disable “key is pressed” when my player makes contact with an enemy.
I am using a boolean whenever my character makes contact with an enemy in order to turn off all actions. I am using the condition “The variable isDead of Player is false” on all actions for the player. Everything works with the boolean except for the “key is pressed” condition for simulating jump.
I just want to make it so the jump key doesnt work after the player made contact with the enemy.
Right now the player can still jump in place regardless of the boolean condition.
when you get the behaviour on the player, it will automaticly be able to move if you click right or left and able to jump (if there is a platform obv lol)
but sometimes ppl want the player to move by wasd not arrow keys, so they disable the default controls , so the arrow keys don’t work, and they do it manually. (using events)
the reason it probably didn’t show you this in the video is maybe cause its old?
cause older versions of gdevelop i think you had to do it manually.
(Hope I didn’t write this in a unclear way, let me know if you didn’t understand!)