Commit 87214290 authored by zjz1994's avatar zjz1994

动画暂存

parent b7501c26
......@@ -48,17 +48,17 @@ export default class foodAni{
});
if(aniname=="ani1"){
var stime1 = Math.floor(time1/4);
egret.Tween.get(mv).to({ scaleX: 0.9, scaleY: 1.1 }, stime1, egret.Ease.quadInOut).call(() => {
egret.Tween.get(mv).to({ scaleX: 1, scaleY: 1 }, stime1, egret.Ease.quadInOut).call(() => {
egret.Tween.get(mv).to({
scaleX: 0.9618,
scaleY: 1.0618
}, stime1, egret.Ease.quadInOut).call(() => {
egret.Tween.get(mv).to({
scaleX: 1,
scaleY: 1
}, stime1, egret.Ease.quadInOut)
});
egret.Tween.get(mv).to({ scaleX: 0.9, scaleY: 1.1 }, stime1*2, egret.Ease.sineIn).call(() => {
egret.Tween.get(mv).to({ scaleX: 1, scaleY: 1 }, stime1*2, egret.Ease.sineIn).call(() => {
// egret.Tween.get(mv).to({
// scaleX: 0.9618,
// scaleY: 1.0618
// }, stime1, egret.Ease.quadIn).call(() => {
// egret.Tween.get(mv).to({
// scaleX: 1,
// scaleY: 1
// }, stime1, egret.Ease.quadIn)
// });
})
});
}
......
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