cc.tween().to(1, { scale: 2, x: { value: 0, easing: ‘sineOutIn’ } })
如果x的value为0,则不能执行,因为下图,tween.js
cc.tween().to(1, { scale: 2 }, { easing: ‘sineOutIn’}) 的easing好像没有效果
可能是因为opt.easing没有赋值给easing
cc.tween().to(1, { scale: 2, x: { value: 0, easing: ‘sineOutIn’ } })
如果x的value为0,则不能执行,因为下图,tween.js
cc.tween().to(1, { scale: 2 }, { easing: ‘sineOutIn’}) 的easing好像没有效果
可能是因为opt.easing没有赋值给easing
来 这么试试
请问action.easing(cc.easeElasticOut(3.0));这个3.0参数在cc.tween里怎么写?
cc.easeSineIn
是 action, 请用 cc.easing.sineIn
好的 希望能加个报错之类的,不然真不知道应该放什么
请问action.easing(cc.easeElasticOut(3.0));这个3.0参数在cc.tween里怎么写?
不支持设置参数哦,可以通过自定义 easing function 来实现
哦,那我还是先用action吧