プレイ日記
Party rock PartyRockx
im having a problem on the game im currently working on. im trying to make it so that when i press A it shows more text progressively. but it just ends up showing all the text. #NEEDHELP
3そうだね
プレイ済み
返信[1]
親投稿
Hanzo rzsense
In this case, you don't need labels. Refer to the following. LOCATE 5,8:PRINT"sentence 1" WHILE(BUTTON(3)AND #A)==0:VSYNC 1:WEND WHILE(BUTTON(3)AND #A)!=0:VSYNC 1:WEND LOCATE 3,9:PRINT"sentence 2" WHILE(BUTTON(3)AND #A)==0:VSYNC 1:WEND WHILE(BUTTON(3)AND #A)!=0:VSYNC 1:WEND LOCATE 2,10:PRINT"sentence 3" WHILE(BUTTON(3)AND #A)==0:VSYNC 1:WEND WHILE(BUTTON(3)AND #A)!=0:VSYNC 1:WEND ...
2そうだね
未プレイ
返信[2]
親投稿
Now what if you tried doing something like this? PRINT "Message 1" WAITFOR #A PRINT "Message 2" WAITFOR #A 'BTN can be any button combination DEF WAITFOR BTN 'while user is not pressing BTN: WHILE BUTTON() AND BTN==0 VSYNC WEND 'while user is pressing BTN: WHILE BUTTON() AND BTN!=0 VSYNC WEND 'user has now pressed and released BTN END
2そうだね
プレイ済み
返信[3]
親投稿
Aaron Krondelo
Actually, you could probably make your code work with one simple fix. You have no wait after the button input is detected, so it's going through all of them with one button press. Just put, WAIT 5 after each - IF BTN THEN DOSTUFF WAIT 5 ENDIF
3そうだね
プレイ済み
返信[4]
親投稿
Ah... Hanzo beat me to it Haha wow our code is almost identical
2そうだね
プレイ済み
返信[5]
親投稿
Party rock PartyRockx
im doing something rong but i dont know what.
0そうだね
プレイ済み
返信[6]
親投稿
Party rock PartyRockx
plz help #NEEDHELP
0そうだね
プレイ済み
返信[7]
親投稿
You need another while loop You need two while loops between each message, not just one: WHILE BUTTON() AND #A==0:VSYNC:WEND WHILE BUTTON() AND #A!=0:VSYNC:WEND
0そうだね
プレイ済み
返信[8]
親投稿
Party rock PartyRockx
i dont understand.
0そうだね
プレイ済み
返信[9]
親投稿
Oh in the second while loops you need != instead of ==
1そうだね
プレイ済み
返信[10]
親投稿
Party rock PartyRockx
its kinda working but wen i pres A it displays Bobs and Billys text at once instead of separately
0そうだね
プレイ済み
返信[11]
親投稿
Try to understand what's going on When you run it, a cursor reads each instruction left to right, top to bottom The cursor is stuck in the while loops Try typing in the code from one of the first two comments by Hanzo or me, you need those two WHILE statements in between every single print command, you are only doing both WHILE loops once, that's why it's not working like you are expecting.
1そうだね
プレイ済み
返信[12]
親投稿
Party rock PartyRockx
i still cant figure it out. i just dont understand. here's the key i would love it if one of you guys could take a look at the problem. its in line 1764
0そうだね
プレイ済み
返信[13]
親投稿
Hanzo rzsense
Could you download DS4R393 and refer to EX_KEYFLUSH? Button status will be kept for at least 1/60sec after you release buttons. Therefore you should FLUSH button buffer every time you detect buttons.
0そうだね
未プレイ
返信[14]
親投稿
Aaron Krondelo
Dude stop using VSYNC after each button press, refer to my earlier comment.
0そうだね
プレイ済み