User blog comment:Sparkystream/Test Game 2/@comment-5986608-20130924022329/@comment-5986608-20130925034348

Buttons are easy. Basically you set up a loop to catch buttons. Instead of INPUT$ you'd create a loop tag like @GETBUTTON. From there, you create a variable that collects button inputs. This could be something like PUSHED = BUTTON(2). In this line, PUSHED stores a number. BUTTON(2) means you're looking for a single button push, not a button being held down. After that, you have your IF/THEN selections to check for button presses (check the documentation for what button equals what) which then GOSUB to whatever you want. Then you add a WAIT 1 (button checks last for one frame and some subs are faster than one frame update, so it would happen twice if you're not including this), then finally something like IF PUSHED == 0 THEN GOTO @LOOP. This is how you would check button presses.