x=100;y=200; while(true){ t=findTouch(); if(t){ //このオブジェクトの近くでタッチまたはクリックがあった場合に処理を行なう. x+=10; } update(); }