【工具箱】egret上下浮动动画

//上下浮动
    private time: number = 0;
    private setHD(): void {
        let self = this;
        egret.clearTimeout(self.time);
        self.time = egret.setTimeout(self.setHD, self, 1800);
        var tw = egret.Tween.get(self.effect);
        tw.to({
            y: 385
        }, 900).to({
            y: 415
        }, 900);
    }

猜你喜欢

转载自www.cnblogs.com/harrickheng/p/11329695.html