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 ...@@ -73,22 +73,22 @@ const tweenAnisp = function(sp:egret.DisplayObject,posx:number,posy:number,latti
// console.log("翻转检查",norscaleX,norscaleY); // console.log("翻转检查",norscaleX,norscaleY);
var pro = new Promise(function(resolve,reject){ var pro = new Promise(function(resolve,reject){
egret.Tween.get(sp) egret.Tween.get(sp)
.wait(1300) .wait(1100)
.to({ .to({
alpha:0 alpha:0
},700,egret.Ease.quadOut) },650,egret.Ease.quadOut)
.wait(200) .wait(100)
.to({ .to({
alpha:startalpha alpha:startalpha
},700,egret.Ease.quadOut); },650,egret.Ease.quadOut);
egret.Tween.get(sp) egret.Tween.get(sp)
.wait(1300) .wait(1100)
.to({ .to({
scaleX:0.2, scaleX:0.2,
scaleY:0.2, scaleY:0.2,
rotation:180 rotation:180
},800,egret.Ease.quadOut) },700,egret.Ease.quadOut)
.call(()=>{ .call(()=>{
sp.x = posx; sp.x = posx;
sp.y = posy; sp.y = posy;
...@@ -97,7 +97,7 @@ const tweenAnisp = function(sp:egret.DisplayObject,posx:number,posy:number,latti ...@@ -97,7 +97,7 @@ const tweenAnisp = function(sp:egret.DisplayObject,posx:number,posy:number,latti
scaleX:norscaleX, scaleX:norscaleX,
scaleY:norscaleY, scaleY:norscaleY,
rotation:360 rotation:360
},800,egret.Ease.quadOut) },700,egret.Ease.quadOut)
.call(()=>{ .call(()=>{
sp.rotation = 0; sp.rotation = 0;
resolve(); resolve();
......
...@@ -120,7 +120,7 @@ export class Element extends eui.Component { ...@@ -120,7 +120,7 @@ export class Element extends eui.Component {
} }
this._fireworks.x = this.x; this._fireworks.x = this.x;
this._fireworks.y = this.y+3; this._fireworks.y = this.y+3;
thisobj.addChild(this._fireworks); thisobj.effectContainer.addChild(this._fireworks);
this._fireworks.gotoAndStop(1); this._fireworks.gotoAndStop(1);
} }
toFireworksAction(start, end) { 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