Maximite 2: How to make switch trigger only once when pressed
Author
Message
Decoy
Senior Member
Joined: 02/08/2019
Location: DenmarkPosts: 109
Posted: 08:57pm 02 Dec 2020
Tinine said
If I understand the requirements, I would do something like:
Do
If [button input] Then
Select Case DbChk
Case 0
DbTmr = Timer + 100
DbChk = 1
Case 1
If Timer > DbTmr Then
var = var +1
DbChk =2
End if
Case 2 'let go of the button dammit
End Select
Else
DbChk = 0
End if
Loop
I really like this switch statement approach! Thanks!
.