Discussions

SmileBASIC Community

Erryestherrose123

07/28/2016 9:39 AM ·Spoilers

Open Closed

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.

Advertisement

Comment

This post has no comments.

  • Anyone's ever tried to email smile boom? I can't continue with my game!

    Yeahs1
    Played
  • 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

    Yeahs0
    Played
  • 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.

    Yeahs0
    Played
  • 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.

    Yeahs0
    Played
  • 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!

    Yeahs0
    Played
  • I tried more than one code. It just confuses all the other buttons for the #up button

    Yeahs0
    Played
  • I don't have my 3DS with me at the time. I only have access to miiverse thru my pc.

    Yeahs0
    Played
  • Post your code when you can.

    Yeahs0
    Played
  • 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

    Yeahs0
    Played
  • Try this :) @LOOP IF BUTTON() AND #A THEN END GOTO @LOOP what will happen (if you copy this correctly) the program will end.

    Yeahs0
    Played
  • 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.

    Yeahs0
    Played

Add a Comment

You must sign in to post a comment.

Sign in using a Nintendo Network ID to connect to users around the world by writing posts and comments and by giving Yeahs to other people's posts. You can create a Nintendo Network ID using your Wii U console or your system in the Nintendo 3DS family.

Use of Miiverse Details about Miiverse

Report Violation to Miiverse Administrators

You are about to report a post with content which violates the Miiverse Code of Conduct. This report will be sent to Nintendo's Miiverse administrators and not to the creator of the post.

Violation Type:

Post ID: 3DB-NBL7-EJ9-9E2A-FZL-R4DK

Report Violation to Miiverse Administrators

You cannot report posts made automatically by a software title.

Edit Post

Select an action: