-
Notifications
You must be signed in to change notification settings - Fork 53
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
different durations problem #15
Comments
I can reproduce your issue. I'm working on it. Thanks. |
Oh thank you very much!!!! |
This is fixed now. Some comments for the code you posted: Values 1, 2, 3 for durations are too small, it is fine to have big values there, in fact is intended to match the unit of time that you are using, since you are using millis, I'd think of using milliseconds there as well, and think of it as 'I want to move from 0 to 5 in X milliseconds'. I'd also use As a last point, using straight integers like that for tween target values might be a problem because it is hard to interpolate them properly. Linear interpolation works as intended because it is intentionally prepared to handle integer values (by rounding floats) but other easings don't. I suggest you use floats and cast them if you need integers. Let me know if it is still broken. Thanks for your issue! |
Different duration values should result in different interpolation values, but all my values are changing at the same time, no matter if I use seek or step method. Here is my test-code. Am I missing something?
0 0 0
0 0 0
0 0 0
2 2 2
2 2 2
2 2 2
3 3 3
3 3 3
3 3 3
5 5 5
The text was updated successfully, but these errors were encountered: