トピック
Erry estherrose123

Press A to start!

Another noob question... How do i write something like"if button==#A then goto@start"?
1そうだね
プレイ済み
返信[1]
親投稿
Ep17 EmPx17
try doing this IF BUTTON(2)==#A THEN GOTO @START
0そうだね
プレイ済み
返信[2]
親投稿
Ep17 EmPx17
it should look like this
0そうだね
プレイ済み
返信[3]
親投稿
Ep17 EmPx17
you don't need line 5 and 6 that was just my test code
0そうだね
プレイ済み
返信[4]
親投稿
Erry estherrose123
Does the (2) have to be there? I tried just () and it didn't work?
0そうだね
プレイ済み
返信[5]
親投稿
Ep17 EmPx17
the (2) is called a feature ID look in the screenshot
0そうだね
プレイ済み
返信[6]
親投稿
Ep17 EmPx17
0 means if you hold the button down is does somthing
0そうだね
プレイ済み
返信[7]
親投稿
Ep17 EmPx17
3 means when you release the button it does somthing
0そうだね
プレイ済み
返信[8]
親投稿
Ep17 EmPx17
something*
0そうだね
プレイ済み
返信[9]
親投稿
Ep17 EmPx17
actually this should work
0そうだね
プレイ済み
返信[10]
親投稿
Pkyoshi19 Pokeyoshi19
Here's what you should do instead. REPEAT VSYNC 1 UNTIL (BUTTON(2) AND 16)!=0 This way, you don't even need to call labels. You can just put your game's code below the code I just gave you and it will work. "(BUTTON(2) AND 16)!=0" is better than just "BUTTON(2)==16", because if you press, for example, A and L at the same time, the latter code won't detect the A press. :P
1そうだね
プレイ済み
返信[11]
親投稿
Erry estherrose123
Thank you!
0そうだね
プレイ済み