请问action.easing(cc.easeElasticOut(3.0));这个3.0参数在cc.tween里怎么写?
例如:
action.easing(cc.easeElasticOut(rate));
cc.tween(this.node)
.to(time, {position: { value: pVec2, easing: ‘elasticOut’ }})
请大神帮忙
@jare @337031709
var sAction:cc.ActionInterval = cc.scaleTo(aTime,tScale);
var fAction:cc.ActionInterval = cc.fadeTo(aTime-dFadeTime,tFade);
var delay:cc.ActionInterval = cc.delayTime(dFadeTime);
var sequence:cc.ActionInterval = cc.sequence(delay,fAction);
var spawn:cc.FiniteTimeAction = cc.spawn(sAction.easing(cc.easeElasticOut(k)),sequence);
这样的动画要用tween写很麻烦,如果他还是另一个action的一部分的话,tween会更复杂,每一部分都是cc.tween,写起来也复杂,我感觉不如现在的action清晰
var sAction = cc.tween(this.node)
.to(aTime, {scale:tScale}, { easing: ‘elasticOut’ })
var fAction = cc.tween(this.node)
.delay(dTime)
.to(aTime-dTime, {fade:tFade})
var spawn = cc.tween(this.node)
.parallel(
sAction,
fAction
);
我也感觉
貌似文档有介绍,建议看看,里面有easing的例子