You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, I noticed with the HTML5 target, I was not able to use @isVar. I've to create a variable and also the default getter prevents Tween to work. I've to create getter/setter this way:
public var x(default, set):Float = 0;
public var y(default, set):Float = 0;
public var scaleX(default, set):Float = 1;
public var scaleY(default, set):Float = 1;
public var rotation(default, set):Float = 0;
public function set_x(value:Float):Float { trace("Setting x to: "+value); transDirty = true; return x = value; }
public function set_y(value:Float):Float { transDirty = true; return y = value; }
public function set_scaleX(value:Float):Float { transDirty = true; return scaleX = value; }
public function set_scaleY(value:Float):Float { transDirty = true; return scaleY = value; }
public function set_rotation(value:Float):Float { transDirty = true; return rotation = value; }
I'm not seeing the tween getting the traces in set_x while targeting js, but am in flash, I have -dce no and putting @:keep before the vars, functions, or both doesn't seem to do anything. onComplete and onUpdate seem to fire in time as normal.
Hi, i have same problem with -dce full, and fixed it like that:
Actuate.tween(mySprite, 2.2, {x:1000}); mySprite.x;
Now getter dont die and tween works fine 😊
Hey, I noticed with the HTML5 target, I was not able to use
@isVar
. I've to create a variable and also thedefault
getter prevents Tween to work. I've to create getter/setter this way:The text was updated successfully, but these errors were encountered: