FlxTween crashes game
-
Hi all,
I have a very similar problem to this post - http://forum.haxeflixel.com/topic/907/updatehitbox-not-working-after-scaling-with-flxtween, but the proposed solution doesn't work for me.
function scalePaddle(paddle:Paddle, scale:Float) { paddle.scale.x = scale; // FlxTween.tween(paddle, { "scale.x": 0.5 }, 2.0, { ease:FlxEase.elasticInOut }); }
Scaling the paddle works fine, but as soon as I try to tween the paddle, the game just freezes?
Any help would be appreciated.
-
Hi, you should write it like that:
FlxTween.tween(scale, { "x": 0.5 }, 2, { ease:FlxEase.elasticInOut });
-
@txori said in FlxTween crashes game:
FlxTween.tween(scale, { "x": 0.5 }, 2, { ease:FlxEase.elasticInOut });
Thank you @Txori. It works if I use the syntax provided.