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

Stopping animations prematurely #319

Open
MonsterDruide1 opened this issue Aug 4, 2022 · 0 comments
Open

Stopping animations prematurely #319

MonsterDruide1 opened this issue Aug 4, 2022 · 0 comments
Labels
feature request Request a new feature
Milestone

Comments

@MonsterDruide1
Copy link

Is your feature request related to a problem? Please describe.
When handling animations on card movements, doing things while an animation is still running is always janky - for example passing on the SwimGame while the FlipAnimation to reveal the cards is still running will leave the card visible in most implementations, even though they should flip back, as the first animation still finishes and sets the card face to "visible"/FRONT.

Describe the solution you'd like
A method like stopAnimation(...) in BoardGameScene should help the situation, and allow the programmer to stop an animation before it is finished if another user action happens that will interfer with the animation.

Describe alternatives you've considered
Another alternative would be to automatically stop the animation on all interactions with that object, but that will probably lead to more confusion. Using Animation.isRunning is currently not possible, as already listed in #318

@MonsterDruide1 MonsterDruide1 added the feature request Request a new feature label Aug 4, 2022
@dominikmaeckel dominikmaeckel self-assigned this Aug 5, 2022
@dominikmaeckel dominikmaeckel added this to the Postponed milestone Aug 5, 2022
@dominikmaeckel dominikmaeckel removed their assignment Aug 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Request a new feature
Projects
None yet
Development

No branches or pull requests

2 participants