最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
分享鼠标跟踪效果
时间:2022-07-02 17:06:40 编辑:袖梨 来源:一聚教程网
var g = 2, st = 0, i, clearPoint = 200;
var points = new Array();
function flower() {
for (i=0; i
points.push(new Array(obj, _xmouse, _ymouse, Math.floor(Math.random()*10-5), Math.floor(Math.random()*15-12), Math.floor(70+Math.random()*30)));
}
}
function onEnterFrame() {
trace(st+","+points.length);
for (i=st; i
if (tmp == null) {
if (i == st) {
st++;
}
continue;
}
if (tmp[5]<0) {
tmp[0].removeMovieClip();
points[i] = null;
} else {
tmp[0]._alpha = tmp[5];
tmp[0]._x = tmp[1];
tmp[0]._y = tmp[2];
tmp[1] += tmp[3];
tmp[2] += tmp[4];
tmp[4] += g;
tmp[5] -= 5;
}
}
if (st>clearPoint) {
points.splice(0, st);
st = 0;
}
}
var obj = new Object();
obj.onMouseMove = function() {
flower();
};
Mouse.addListener(obj);
相关文章
- 明末渊虚之羽在哪里获取头陀的回响 头陀回响获取方法 07-30
- 2025年全球十大加密货币交易平台App排名 最新交易所榜单推荐 07-30
- 剑星战斗思路是什么 战斗思路分享 07-30
- Twinstake 推出 ETH 质押「启动与退出计算机」 07-30
- 燕云十六声寄棺主无伤怎么通关 鬼神愁无伤逃课打法攻略 07-30
- 明末渊虚之羽铜灯盏在哪里获取 铜灯盏获得方法介绍 07-30