10.07 prototype method(1) 벌 bee0, bee1 /*onClipEvent(load){ speed = 0.1; targetx = random(550); targety = random(400); } onClipEvent(enterFrame){ if(random(20) ==1){ targetx = random(550); targety = random(400); } this._x = this._x + speed*(targetx - this._x); this._y = this._y + speed*(targety - this._y); diffX = targetx - this._x; diffY = targety - this._y; this._rotation = Math.atan2(diffY, diffX)*180/Math.PI; }*/ spe.. 더보기 이전 1 ··· 147 148 149 150 151 다음