Example

Button library

2

Mrlegoboy 2020-12-10 04:38

RELEASE(button) is true on the frame the button is let go
TAP(button) is true on the first frame that the button is pressed
PRESS(button) is true on each frame the button is pressed and should be used to avoid sub-frame input.


Timo 2020-12-10 07:10

Useful if you need to check release. TAP is already built in.


Mrlegoboy 2020-12-12 04:00

Oh my bad. I thought tap changed after the first time you checked it so i made this to be safe.


Log in to reply.