Page 1 of 1

Disabling a touch button after its been touched?

Posted: 20 Jan 2020, 19:13
by mtyndorf
Hey Guys

Another question from a relative newcomer: Is there a way to disable a touch button (or the object its been assigned to) after the touch entry has been detected? I see "Blocked" and "Inactive" under the "state" menu in the touch button's Input window, but I'm a bit confused as to how to store that state until it is "reset".

Think of a button that has a video mapped to it that is triggered via touchEntry. The touch triggers the video to play back, it holds on its last frame, but then it needs to be taken out so that its not re-triggered again until a master reset of the scene is done. I can get the state to change briefly but how can I make it persistent and resettable?

Thanks!

Re: Disabling a touch button after its been touched?

Posted: 21 Jan 2020, 07:22
by lerou
Use a toggle, connect its output to the touch button's enabled state. When the button's trigger fires -> turn toggle off. On scene reset -> turn toggle on.

Re: Disabling a touch button after its been touched?

Posted: 03 Feb 2020, 13:13
by Jan
What lerou said. Plus i recommend using soft states for the video reset. So you dont have such trouble resetting it to the first one.