[Question] Press once?

Does anyone know how to trigger an event only if the player press a certain key while an object is colliding with another object. However, I don’t want the event to be triggered if the key has been pressed BEFORE the objects collide. Something like in the rhythm game, for example.

You need only make this:

Event: object_a is in collision with object_b
key x is pressed

You forgot Trigger Once condition, Mats.

It will not work as expected : if you the click to be processed only if it hasn’t been pressed before, you should do something like that :
Sans titre.png
This way, the event will only execute one time after the beginning of the key press and will not wait the moment when the object collide the other.

Wow, it works! Thanks you guys! :smiley: