Filter for pressing a button

I’m trying to make it so that a button won’t do anything until the player collides with a certain object. Instead, the button pressed works regardless of the filter’s value, which is automatically set to 0 using a once trigger, and touching the object “presses” the button for you. It’s currently set up as:

Keyboard (S) down -> in Filter (?0) pass -> start Animation
Keyboard (S) up -> stop Animation
Collision(Item) hit -> in Number (1) out -> in (filter object)
Once out -> set Number (0) -> in (filter object)

(Sorry if the layout is confusing.)

And please tell me if I need to specify anything, I’m new to Flowlab.

Hey @Phendrana - post a link to your game, and I’ll take a look :slight_smile:

http://www.flowlab.io/game/play/587372

(The object the player must collide with is called Morphball)