Archiverse Internet Archive
投稿のみ 投稿と返信
前のページ(最近)
1 2 3 4 5 6 7 8 9 10 11 12 13 14
次のページ(過去)
返信[9]
親投稿
OlOOlOOl pi_r_round
Can you upload your program and provide the key so I can have a look?
0そうだね
プレイ済み
返信[7]
親投稿
OlOOlOOl pi_r_round
Try using both. Wait for button not being pressed, then wait for button to be pressed.
0そうだね
プレイ済み
返信[5]
親投稿
OlOOlOOl pi_r_round
Checking BUTTON checks the current state. Checking B checks the state it was at, at the moment you set B=BUTTON. Have a look at this screenshot. It's a simple way to wait until button A is pressed. Notice we first wait until no buttons are pressed. This prevents a previous continued press of A from making this code flow through without waiting for a new press of A.
1そうだね
プレイ済み
返信[3]
親投稿
OlOOlOOl pi_r_round
Also, get rid of that END statement that's just above the WEND. The END statement will force the program to exit before the WEND sets the instruction pointer back up to the WHILE statement.
0そうだね
プレイ済み
返信[1]
親投稿
OlOOlOOl pi_r_round
Once in the loop you're not checking the current state of the button, only the state you saved in the variable. Change the code to have it check the current state inside the loop.
0そうだね
プレイ済み
返信[2]
親投稿
OlOOlOOl pi_r_round
You can use CHR$(34) for the normal quotation marks. The only trick is that it has to be outside the quotes that hold the rest of the string.
2そうだね
プレイ済み
返信[2]
親投稿
OlOOlOOl pi_r_round
It only appears to be skipping the second menu item. What's actually happening is that when it goes to the second item, it reads the buttons, which are still indicating "go to next item", so it quickly advances to the third item (if going down) or first item (if going up). If you wait until the buttons are released before reading them again this behavior won't occur. See the attached screenshot.
0そうだね
プレイ済み
返信[3]
親投稿
OlOOlOOl pi_r_round
Ack. Ninja'd. The ZR & ZL buttons are considered part of the circle pad pro. To be able to use the circle pad pro features it must first be turned on (even on a NEW 3DS).
0そうだね
プレイ済み
返信[2]
親投稿
OlOOlOOl pi_r_round
<< and >> are not comparisons, they perform bit-wise shifts. See the attached screenshot for examples.
0そうだね
プレイ済み
返信[5]
親投稿
OlOOlOOl pi_r_round
Congratulations! You can use the code I supplied freely. No credit is necessary.
1そうだね
プレイ済み
返信[2]
親投稿
OlOOlOOl pi_r_round
This code will auto-center the sentence horizontally. The variable "A" specifies the sentence's vertical position.
0そうだね
プレイ済み
返信[1]
親投稿
OlOOlOOl pi_r_round
Can you show a screenshot of where it's ending up, and let us know where you want it to go? From what I can see in that code, it's normal for the text to be towards the upper right. The 17 in the LOCATE statement makes it start in column 17. The 1 in that same statement makes it appear on row 1. Also, what's the variable A supposed to do? It's defined but never used within the DEF block.
0そうだね
プレイ済み
返信[11]
親投稿
OlOOlOOl pi_r_round
Use the quotation marks that are pink on your keyboard, the one above the 2 and 3 number keys near the upper left.
1そうだね
プレイ済み
返信[4]
親投稿
OlOOlOOl pi_r_round
You need to have SmileBASIC in order to download & run programs that others have created.
0そうだね
プレイ済み
返信[3]
親投稿
OlOOlOOl pi_r_round
Click the "known issues and updates" link on the smilebasic.com website.
1そうだね
プレイ済み
返信[1]
親投稿
OlOOlOOl pi_r_round
Try using normal sentence case, i.e. both upper and lower case letters.
0そうだね
プレイ済み
返信[1]
親投稿
OlOOlOOl pi_r_round
Perhaps you should add a line to wait for the button to be released from the previous time it was pressed, before reading it again.
0そうだね
プレイ済み
返信[4]
親投稿
OlOOlOOl pi_r_round
Line 32 is missing "THEN"
0そうだね
プレイ済み
返信[1]
親投稿
OlOOlOOl pi_r_round
What are you trying to do? What's the purpose of setting BOSS01=2 then checking if it's 10, then checking if it's 1? There's no way it can be anything other than 2.
1そうだね
プレイ済み
返信[3]
親投稿
OlOOlOOl pi_r_round
There are functions specifically for what you're doing in lines 53 & 54. Look up the MIN() and MAX() functions. Lines 53 & 54 can be reduced to the following. CY=MIN(MAX(CY,8),12)
0そうだね
プレイ済み