How to deactivate a button for a few seconds after its been pressed
I'm working on this game where you have to press a buton at the right time. (Like a rytm game). I've set it up so that if you press the button at the wrong time, it removes points and if you press at the right time you gain points. Problem is: if i push the button at the right time, but keep it pressed => i'll get points but then negative points right after. So my question is: How do i basically deactivate a button for a few seconds after the initial press? Or how to deactivate a long press? I want my buttons to act like pulses, not be on forever if i keep them clicked..
-
A couple of hints: use a timer. And a signal manipulator can turn a constant signal into a pulse.
-
Will try! Thanks
-
Maybe if you put a counter in between your controller and score changer. Wire it to count up once and then reset after a button press.
댓글을 남기려면 로그인하세요.