[问题] 让特效能重复启动的效果?

楼主: idareyou (HellTraveller)   2013-06-20 17:46:14
说起来有点笼统
但触发的方式应该说是 "子弹连续发射的感觉"
不过我找到的都是一次一发,消失之后再重射
想要达到的理想效果是 
鼠标移过去(rollover)触发 
在特效影格结束前,再一次的移过去触发
会"新增"一个特效,而不是将尚未结束的影格强制从零开始
这是我目前找到的,使用上就是...只能触发一次,等它玩爽了才再次触发
不知道为什么复制不了,所以只能慢慢打,打错字请见谅
onClipEvent(load){
fire = false;
speed = 20;
}
onClipEvent (mouseDown){
if(!fire)
{
fire = true;
this._x = _root.物件._x+150;
}
}
onClipEvent(enterFrame){
if(fire){
this.visible = true;
this._x += speed;
if(this._x > _root._Right+50)
{fire=false;}
}
else {
this._visible = false;
}
}
想请问要让这个物件能够增生并且消失(remove),应该从哪方面下手呢
楼主: idareyou (HellTraveller)   2013-06-20 18:30:00
http://ppt.cc/Va9S 自己找到答案....

Links booklink

Contact Us: admin [ a t ] ucptt.com