トピック
Timmir Timmir

So I have a quick question about the Input command. From my understanding, the Input command is suppose to ask the question given and then wait for a response. However in the code in the screenshot provided, it seems to have decided to just continue the program before anyone has a chance to answer the question.

So does anyone know why this is and if there's a way to fix it?
1そうだね
プレイ済み
返信[1]
親投稿
PikaRyan papermariofanmm
i have the same problem for my top down adventure game...i just decided to ditch half the code maybe there is a way to fix it....till then good luck
0そうだね
プレイ済み
返信[2]
親投稿
Cαιεъ triforcelink4388
I'm a bit rusty, but I do believe the PN and TN at the end of the questions need to be strings (PN$ and TN$), idr how to do that tho
0そうだね
プレイ済み
返信[3]
親投稿
Hanzo rzsense
In my opinion, the reason why does this phenomenon occur is that "A" button hysteresis remains. Don't you use "button()" before "input"? Please try to insert codes as follows before "input". REPEAT VSYNC 1 UNTIL(BUTTON(0)AND #A)==0
0そうだね
未プレイ
返信[4]
親投稿
Ed CPFace
Good question! As far as I can tell, your code is right. I tried it myself and it worked correctly. What does it print as the value of these variables when INPUT fails? If it's a 0, it may be incorrectly detecting that you've pressed enter on your keyboard or the A button.
0そうだね
プレイ済み
返信[5]
親投稿
Timmir Timmir
Thanks everyone. I'm glad to say that it was the A button press remaining longer then intended was the problem. Something that I'm going to keep in mind in the future.
1そうだね
プレイ済み
返信[6]
親投稿
RaineX RaineX3D
can you fit your hand in the pringles can?
0そうだね
未プレイ