actuate
actuate copied to clipboard
Unable to access my tween's target from the onUpdate() function?
I'm trying to access my target from a tween's onUpdate function but I'm only getting the initial value:
var p:Point = new Point(0,0);
Actuate.tween(p,1,{x:10}).onUpdate(Log.trace,[p.x]);//this fails
Is there a way to get the value of my target while it's updating?
I made a quick test here: https://try.haxe.org/#4A61a