nebyoolae 2023-09-13 16:35
I was playing Tony Hawk's Pro Skater the other day and then wondering how to implement this in a game. So, if you also were wondering, here's what I did.
GLOBAL B_PRESSED
B_PRESSED=0
IF BUTTON TAP(0,1) THEN
B_PRESSED=1
END IF
IF BUTTON(0,1) AND B_PRESSED=1 THEN
'CHANGE SPRITE, ETC.
ELSE
IF B_PRESSED=1 THEN
B_PRESSED=0
CALL JUMP
END IF
END IF