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

AnimatedSprite: Remove play()'s backwards, add methods to compensate #65973

Commits on Sep 17, 2022

  1. AnimatedSprite: Remove play()'s backwards, add methods to compensate

    Removes `play()`'s second parameter, `backwards`. This makes `speed_scale > 0.0` the one consistent way to verify if an animation is playing in reverse.
    
    To compensate, adds `play_forward()` and `play_backwards()` as shorthand methods. Both of these methods change the sign of `speed_scale` only when necessary, then call `play()`.
    Mickeon committed Sep 17, 2022
    Configuration menu
    Copy the full SHA
    0b12497 View commit details
    Browse the repository at this point in the history