Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to access my tween's target from the onUpdate() function? #85

Open
SadiQURT opened this issue Dec 10, 2017 · 0 comments
Open

Unable to access my tween's target from the onUpdate() function? #85

SadiQURT opened this issue Dec 10, 2017 · 0 comments

Comments

@SadiQURT
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant