How to trigger a function with two events connected?

Hey Vihulym,

You can store the result of the spacebar into a variable. Then on the overlap, you check the state of the variable.