How to make the character deny to Run & Jump when attacked (Solved)

I gave up creating a tower defense game and now im trying to make a platformer game.
I managed to make the movement when the player accidentally enters in contact with the enemy but the Run & Jump bundle stays active, and i want it to stay off for 1 second.
How do i code it?

Just use a switch. In logic and math.

1 Like

Thanks for your solution! It did help alot.

You could just use the enable block