プレイ日記
NagatoYuki newtonyic1
why is it only the #up if dtatement working?
10そうだね
プレイ済み
返信[1]
親投稿
Aaron Krondelo
You're better off doing just one check for #UP and one for #DOWN, put a VSYNC at the end of your loop too. Do it like this: IF B AND #DOWN THEN IF S==2 THEN DO THIS ELSEIF S==3 THEN DO THIS ENDIF ENDIF Then do the same for #UP.
1そうだね
プレイ済み
返信[2]
親投稿
NagatoYuki newtonyic1
it's not reading any statement
0そうだね
プレイ済み
返信[3]
親投稿
Aaron Krondelo
I think you're missing END statements, idk though I don't like doing it on one line. (goes against coding style) and it just makes more sense to do it with proper style.
0そうだね
プレイ済み
返信[4]
親投稿
NagatoYuki newtonyic1
it's still doing the same
0そうだね
プレイ済み
返信[5]
親投稿
Aaron Krondelo
Sorry my first example didn't show this, but just get used to doing it this way. Each indentation shows which loop/if statement it executes.Just tested and this works.
1そうだね
プレイ済み
返信[6]
親投稿
NagatoYuki newtonyic1
ok i'll copy
0そうだね
プレイ済み
返信[7]
親投稿
NagatoYuki newtonyic1
why button(2)?
0そうだね
プレイ済み
返信[8]
親投稿
Aaron Krondelo
I usually use (2) because it only detects a press versus a button hold. If you press the '?' mark after typing 'button' it will explain the differennt parameters. You will see, if you use BUTTON() and hold the button it will rapidly print that text.
1そうだね
プレイ済み
返信[9]
親投稿
NagatoYuki newtonyic1
it worked
0そうだね
プレイ済み
返信[10]
親投稿
NagatoYuki newtonyic1
i have another question. i want to randomize three integer numbers,lets say 1,2,3. how do i do that?
0そうだね
プレイ済み
返信[11]
親投稿
Aaron Krondelo
Sweet! That's easy. X=RND(3) + 1 RND(3) If I remember correctly will generate a random number from 0-2, I can't remember just mess around with it, and add +1 to avoid picking zero.
0そうだね
プレイ済み
返信[12]
親投稿
NagatoYuki newtonyic1
ok
0そうだね
プレイ済み
返信[13]
親投稿
NagatoYuki newtonyic1
now i'm trying to make the text stand still until i press the a button and thrn goes to the loop
0そうだね
プレイ済み