NoobMan3 2022-02-02 22:27
I want to make a racing like game i think the only thing i will need to learn is how to make steering work
Benimo12 2022-02-03 01:47
If I understand you correctly, you’re trying to make your game respond to button input right? If so, if you use the GAMEPAD 1 command, your input responses should look like this
LEFT(0)
RIGHT(0)
UP(0)
DOWN(0)
BUTTON(0) (if you want A&B to respond the same way)
BUTTON(0,1) (for B)
BUTTON(0,0) (for A)
If you’re using GAMEPAD 2 commands, then the aforementioned responses will work for the first set of controls. To use the second set of controls, replace the (0) or (0,n) with (1) or (1,n). For example:
GAMEPAD 1
X=32
Y=32
IF LEFT(0) THEN DEC X
IF RIGHT(0) THEN INC X
IF UP(0) THEN DEC Y
IF DOWN(0) THEN INC Y
WAIT VBL
SPRITE 0,X,Y,1