-
Notifications
You must be signed in to change notification settings - Fork 7.1k
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
Tweens: Duration of 0 Makes Values NaN (Alpha) #6955
Comments
What's the point of a duration of zero? |
When passing in dynamic values sometimes a 0 makes it's way down the chain. In a large codebase where this has worked for ages, it's a tricky one to track down. Either way, it shouldn't leave the sprite in a state where you cannot tween it back to a different value. |
I'd like to chime in that I also encountered this unexpected behavior. |
You can use |
Version
Description
Adding a tween with a duration of
0
leaves the object in an invalid state withNaN
as the value and cannot be tweened afterwards, unless the value is explicitly set to a valid one.NOTE: This works in 3.86.0 and prior
Example Test Code
Tweak the sprite alpha example to a tween and see the outcome. This might be happening with other values, but I haven't tested those.
Sandbox
The text was updated successfully, but these errors were encountered: