because when i put the code clayton gave me it puts the b part into the a part. so its like you press a and then it tells you to press b. i want both of the options in the same menu. BUT I CANT!!!
you could do something like:
WHILE 1
B=BUTTON(2)
IF B==#A THEN GOTO @LABEL1
IF B==#B THEN GOTO @LABEL2
'...
WEND
replacing the labels with whatever you're using
I'm not exactly sure what you're asking, but if you want to use B use:
IF BUTTON() AND #B THEN (Whatever you want)
If you want it to do what you just asked, just use 12Me23's method.
REPEAT:UNTIL BUTTON() AND #A
CLS 'or ACLS
? "Hello"
REPEAT:UNTIL BUTTON() AND #B
so what im asking is how do i make the credits(b button) and the actual adventure(a button) show on the same menu? I think it's some problem with the while's. I dont know.
Plz help...
DERP
XD
When you press A or B, it will go to its assigned label. It does not display on the screen what the buttons do when you run it. Before your WHILE loop, put:
LOCATE 0,1 PRINT (or ? for short) "Press A to (whatever you want)"
LOCATE 0,2 PRINT "Press B to (whatever you want)"
so back to what i was saying, ot showed the a button part, but it made the b button part dissapear! I want both of the parts on the same menu, but it wont work!
so when i make 2 whiles, only one lf them shows. so when i added it before the while, the a part showed, but the b part dissapeared. i need to know how to make both of them appear and work.