特定の位置をクリックした時に動作をする - hoge1e3/Tonyu2 GitHub Wiki
特定の位置をクリック/タッチした時に動作をする
Player
x=100;y=200;
while(true){
t=findTouch();
if(t){
//このオブジェクトの近くでタッチまたはクリックがあった場合に処理を行なう.
x+=10;
}
update();
}
Player
x=100;y=200;
while(true){
t=findTouch();
if(t){
//このオブジェクトの近くでタッチまたはクリックがあった場合に処理を行なう.
x+=10;
}
update();
}