How to use tween to scale the sprite?

1,018 views
Skip to first unread message

meishijie

unread,
Nov 15, 2014, 9:03:02 AM11/15/14
to haxef...@googlegroups.com
FlxTween.tween(this, {scale:0.5}, 1, { ease: FlxEase.quadInOut, type: FlxTween.ONESHOT } );

Is this correct?

Gama11

unread,
Nov 15, 2014, 9:06:16 AM11/15/14
to haxef...@googlegroups.com
scale is a FlxPoint / an object of its own, which in turn has x and y properties you can tween. The following should work:

FlxTween.tween(this.scale, {x:0.5, y:0.5}, 1, { ease: FlxEase.quadInOut, type: FlxTween.ONESHOT } );
Reply all
Reply to author
Forward
0 new messages