※ 引述《andyjih (few)》之銘言:
: ※ 引述《andyjih (few)》之銘言:
: : 用action寫
: : 一個圓 當滑鼠在左 圖往右轉
: 就當游標指在圓的右邊時,圓為逆時針轉
: 游標在圖的左邊時,圓變成順時針轉
: 至於有沒有要原地轉,是希望可以啦
原始檔 先存檔再開!!
http://web.cc.ntnu.edu.tw/~48970308/currotedu.fla
we make a MC named "cir", then we take it to be an instance named "cc".
In frame1, follows are simple function as your wanted.
rotspeed=getProperty("cc",_x)-_xmouse; //設定變數rotspeed
if(rotspeed>=50){
rotspeed==50;
}
if(rotspeed<=-50){
rotspeed==-50;
} //設定變數範圍
a=rotspeed*0.1+a; //設定變數a之值
setProperty("cc",_rotation,a); //設定"cc"之rotation.
In frame2==> make a loop for all.
That's all, enjoy.
--
好耶! 師傅不用去按摩了!!!
post by harry.nakata
推
推218.166.142.143 11/19, , 1F
推218.166.142.143 11/19, 1F
推
推 218.167.250.8 11/19, , 2F
推 218.167.250.8 11/19, 2F
※ 編輯: harry901 來自: 218.167.250.8 (11/19 01:18)
推
推218.166.142.143 11/19, , 3F
推218.166.142.143 11/19, 3F
推
推 210.85.48.159 11/19, , 4F
推 210.85.48.159 11/19, 4F
推
推140.122.199.193 11/19, , 5F
推140.122.199.193 11/19, 5F
Flash 近期熱門文章
PTT數位生活區 即時熱門文章