看板 Flash 關於我們 聯絡資訊
最近我再網路上有看到一個飄移的泡泡的作法 但是對裡面的ActionScript有些不了解 想請板上的大大詳細講解 第一個影格 setProperty(this, _x, random(500)); if (random(100) == 1) { gotoAndPlay(3); } 第二格影格 gotoAndplay(1); 第三格影格 setProperty(this, _y, (getProperty(this, _y) - 4)); setProperty(this, _x, ((getProperty(this, _x) + random(4)) - 2)); if (getProperty(this, _y) < 0) { setProperty(this, _y, 800); gotoAndPlay(1); } 第四格影格 gotoAndPlay(3); -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 122.146.83.228
Jedic:Flash4的方法... 08/04 17:20
etrexetrex:我看的好痛苦 08/04 18:50