Groups
Sign in
Groups
HaxeFlixel
Conversations
Labels
About
Send feedback
Help
How to use tween to scale the sprite?
1,018 views
tween
Skip to first unread message
meishijie
unread,
Nov 15, 2014, 9:03:02 AM
11/15/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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 AM
11/15/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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