Commit 516eedb9 authored by zjz1994's avatar zjz1994

调整动效,调整烟花层级

parent 02d4da10
......@@ -73,22 +73,22 @@ const tweenAnisp = function(sp:egret.DisplayObject,posx:number,posy:number,latti
// console.log("翻转检查",norscaleX,norscaleY);
var pro = new Promise(function(resolve,reject){
egret.Tween.get(sp)
.wait(1300)
.wait(1100)
.to({
alpha:0
},700,egret.Ease.quadOut)
.wait(200)
},650,egret.Ease.quadOut)
.wait(100)
.to({
alpha:startalpha
},700,egret.Ease.quadOut);
},650,egret.Ease.quadOut);
egret.Tween.get(sp)
.wait(1300)
.wait(1100)
.to({
scaleX:0.2,
scaleY:0.2,
rotation:180
},800,egret.Ease.quadOut)
},700,egret.Ease.quadOut)
.call(()=>{
sp.x = posx;
sp.y = posy;
......@@ -97,7 +97,7 @@ const tweenAnisp = function(sp:egret.DisplayObject,posx:number,posy:number,latti
scaleX:norscaleX,
scaleY:norscaleY,
rotation:360
},800,egret.Ease.quadOut)
},700,egret.Ease.quadOut)
.call(()=>{
sp.rotation = 0;
resolve();
......
......@@ -120,7 +120,7 @@ export class Element extends eui.Component {
}
this._fireworks.x = this.x;
this._fireworks.y = this.y+3;
thisobj.addChild(this._fireworks);
thisobj.effectContainer.addChild(this._fireworks);
this._fireworks.gotoAndStop(1);
}
toFireworksAction(start, end) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment