2017年4月11日火曜日

CreateJS の API:コードを使用してトゥイーン


/* バウンスアウト緩和効果を使用して選択したオブジェクトをトゥイーン
*/

var target = this.instance_name_here;
var tween = createjs.Tween.get(target, {
loop: true
})
.to({
x: target.x,
y: canvas.height - 55,
rotation: -360
}, 1500, createjs.Ease.bounceOut)
.wait(1000)
.to({
x: canvas.width - 55,
rotation: 360
}, 2500, createjs.Ease.bounceOut)
.wait(1000)
.to({
scaleX: 2,
scaleY: 2,
x: canvas.width - 110,
y: canvas.height - 110
}, 2500, createjs.Ease.bounceOut);

0 件のコメント:

コメントを投稿