Closed RockyF closed 8 years ago
The set method won't work like that. Tweens will use their initial and to()
values -- so if you are already using the to()
method to change the x
property, it will ignore the values set on it.
Change the set
call to a to
call with 0 duration.
createjs.Tween.get(target)
.to({x: 100})
.to({x: 300}, 1500);
ok, it is!
you should saw target move from 0 nor 100 (set({x: 100}))