プレイ日記
DerpTias SneekATTACK11
HOW DO BUTTONS WORK??? Help please!!
3そうだね
プレイ済み
返信[1]
親投稿
☆CodeZeяo☆ Code-Zero-666
Are you trying to get sprites to move?
0そうだね
プレイ済み
返信[2]
親投稿
DasEtwas MyTheo00
when you press any button, smilebasic is automatically going to detect it and store it in a variable called BUTTON(). Every key has a certain value that gets added to BUTTON(). For example the A button is 16. When you press A, BUTTON() will be 16. Using the IF command you can check variables for values. In this case "==" means "is equal to".
1そうだね
未プレイ
返信[3]
親投稿
DasEtwas MyTheo00
IF BUTTON()==16 THEN 'run a command note you have to run it in a constant loop, which skips to it´s beginning everytime it reaches it´s end. @SOMENAME IF BUTTON()==16 THEN 'blabla GOTO@LOOP
1そうだね
未プレイ
返信[4]
親投稿
Phoenix B) epicphoenix4
Well, here's what a button is: a knob on a piece of electrical or electronic equipment that is pressed to operate it. Thanks Google!
1そうだね
プレイ済み
返信[5]
親投稿
Phoenix B) epicphoenix4
Also, that file name tho.
2そうだね
プレイ済み
返信[6]
親投稿
DerpTias SneekATTACK11
@das twas am i doin' it right?
1そうだね
プレイ済み
返信[7]
親投稿
DasEtwas MyTheo00
yep! dont forgett the loop
0そうだね
未プレイ