プレイ日記
κιъъιε kibbledude
can an1 tell me how to do this with sprites?
2そうだね
プレイ済み
返信[1]
親投稿
Jacob KulcakKid4
It's pretty much the same thing. SPSET 0 the definition number,1 the sprite that you want. then SPOFS 0 def number,x,y IF BUTTON==#left THEN X=X-1. And then x+1 for right.
0そうだね
プレイ済み
返信[2]
親投稿
SomeThing… DJZouk2012
This won't fix what you're talking about, though I advise that you use REPEAT or WHILE loops instead of GOTO. GOTO will cause you many problems in the future.
0そうだね
未プレイ
返信[3]
親投稿
OlOOlOOl pi_r_round
This screenshot shows code to move a sprite using the X Y A B buttons. Change "AND" in the button() test statements to "==" if you don't want to allow diagonal movement.
0そうだね
プレイ済み
返信[4]
親投稿
OlOOlOOl pi_r_round
This screenshot shows code to move a sprite using the circlepad, if that interests you.
0そうだね
プレイ済み
返信[5]
親投稿
Stewart segludian1
I like to use callback functions for sprites. See attached.
2そうだね
プレイ済み