トピック
Erry estherrose123

Weird bug with my buttons...

So yesterday I asked you guys how to use buttons, and you were really helpful. But when I tried it, when the prompt said "press a", nothing happened when i pressed. I was so angry, I started pressing all the buttons, but nothing worked, until I pressed the UP on the plus control. Then I tried changing the button ID, but none of the buttons work, only when I press up.
2そうだね
プレイ済み
返信[1]
親投稿
Erry estherrose123
Anyone's ever tried to email smile boom? I can't continue with my game!
1そうだね
プレイ済み
返信[2]
親投稿
nate NJR1432
Show me your code. Most likely someone told you wrong or you missed a letter or something. But who knows this could be a wierd glitch. But still please show me and I'll see if I can help :D
0そうだね
プレイ済み
返信[3]
親投稿
Oscar PwnageBlock
The button command should be used with a logic gate accompanied by button constants. You can find all button constants in BUTTON's help entry, but they are pretty simple to remember. They are... #A, #B, #X, #Y, #L, #R, #UP, #DOWN, #LEFT, #RIGHT. If you have a New 3DS you can also use #ZL and #ZR. After this, you can use a simple conditional to determine if a button is being pressed.
0そうだね
プレイ済み
返信[4]
親投稿
Oscar PwnageBlock
You can write a button conditional like this... IF BUTTON(0) AND #A THEN 'ETC You can replace the #A with other constants. The number in the BUTTON instruction represents what kind of button input you want to get. 0 (or none) gets input of a button getting pressed and held. 2 will get you input of buttons only on the time they get pressed (not held). Look up BUTTON's help entry for the rest.
0そうだね
プレイ済み
返信[5]
親投稿
Oscar PwnageBlock
In this case BUTTON(2) AND #A will work only if the A button was pressed (but not if it was being held). You can also do BUTTON(2) AND (#A OR #B OR #X) to detect if either the A, B or X button were pressed. You can place as many buttons as you want that way. Feel free to ask if you need more help or clarification!
0そうだね
プレイ済み
返信[6]
親投稿
Erry estherrose123
I tried more than one code. It just confuses all the other buttons for the #up button
0そうだね
プレイ済み
返信[7]
親投稿
Erry estherrose123
I don't have my 3DS with me at the time. I only have access to miiverse thru my pc.
0そうだね
プレイ済み
返信[8]
親投稿
Aaron Krondelo
Post your code when you can.
0そうだね
プレイ済み
返信[9]
親投稿
Erry estherrose123
If I remember correctly, it was: REPEAT VSYNC 1 UNTIL BUTTON(2) AND 16!=FALSE I also tried: IF BUTTON(2)== 16 THEN GOTO@LABEL none of them worked
0そうだね
プレイ済み
返信[10]
親投稿
nate NJR1432
Try this :) @LOOP IF BUTTON() AND #A THEN END GOTO @LOOP what will happen (if you copy this correctly) the program will end.
0そうだね
プレイ済み
返信[11]
親投稿
Aaron Krondelo
Nate's method will work. Let me show you how I do it, I think this way makes it less ambiguous. It's very clear and simple to understand.
0そうだね
プレイ済み