プレイ日記
José A. jose12alex
For some reason the FOR I=0 TO REC command is not working at all. The variable REC is 60 and i did put the NEXT there.
3そうだね
プレイ済み
返信[1]
親投稿
OlOOlOOl pi_r_round
Does an error message appear, or are you assuming it's not working because it immediately goes to @LOSE? If the FOR - NEXT loop was intended to create a delay, it should contain a VSYNC. Just after the BUTTON() would probably be a good place for it.
0そうだね
プレイ済み
返信[2]
親投稿
José A. jose12alex
OH... But yeah, it instantly goes to @LOSE.
0そうだね
プレイ済み
返信[3]
親投稿
OlOOlOOl pi_r_round
Sorry, I was writing based on memory. Looking at your code again, a better place for the VSYNC would be after the line that contains "BTN=="
0そうだね
プレイ済み
返信[4]
親投稿
José A. jose12alex
Like this?
0そうだね
プレイ済み
返信[5]
親投稿
José A. jose12alex
What im trying to make is a delay that also detects when i push certain button on the delay and goes to @LOSE when it ends.
0そうだね
プレイ済み
返信[6]
親投稿
José A. jose12alex
Is there any way to do that without repeating WAIT 1 IF BTN==16 THEN GOTO @WIN 60 Times?
0そうだね
プレイ済み
返信[7]
親投稿
José A. jose12alex
Please help.
0そうだね
プレイ済み
返信[8]
親投稿
toxi toxibunny
try changing the lines to ... FOR I = 0 TO REC ... VSYNC 1 ... this should check it once every 1/60 of a second for 1 second. The way you have it now, it only checks once, then waits a second, then continues...
1そうだね
未プレイ
返信[9]
親投稿
Ed CPFace
Change 107 to FOR I=0 to REC and 110 to VSYNC 1
2そうだね
プレイ済み
返信[10]
親投稿
José A. jose12alex
Nevermind, i discovered i could use: I=0 @LOOP I=I+1 BTN=BUTTON(2) IF BTN>16 THEN IF I==REC THEN I=0 @LOSE GOTO @LOOP
0そうだね
プレイ済み
返信[11]
親投稿
toxi toxibunny
post a screenshot of your code please? I can't figure out what you've done...
0そうだね
未プレイ
返信[12]
親投稿
José A. jose12alex
Here's the code.
0そうだね
プレイ済み
返信[13]
親投稿
toxi toxibunny
Ah yes, I see now. Thanks :)
0そうだね
未プレイ
返信[14]
親投稿
Pikachu Gods_ID
gibbrish alert
1そうだね
未プレイ