単純に書くならこうかな? b=0 stick out xx,yy if xx<0 then b=b or #left if xx>0 then b=b or #right if yy<0 then b=b or #down 'なぜかy方向は下がマイナスになる if yy>0 then b=b or #up '操縦桿を意識しての仕様? たぶんこれでイケる気がする