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

Feature request: Tween groups and group actions #21

Open
ivan-mogilko opened this issue Nov 4, 2022 · 0 comments
Open

Feature request: Tween groups and group actions #21

ivan-mogilko opened this issue Nov 4, 2022 · 0 comments
Milestone

Comments

@ivan-mogilko
Copy link

This request is following some conversations, both related to a use of the Tween module, and other game engine related things.

Often you need to distinct groups of objects of varied types, and perform an operation on all of them. One good example is pausing and unpausing. A user might want to pause all the tween effects in the room, related to the gameplay, while keeping all the menu/gui effects and animations running. One approach would be to distinguish by an object type, but sooner or later someone will run into a situation where this won't do.

My proposal is to introduce "tween groups", where group is identified either by a number or a string. The group is passed either as an extra argument in a function that starts tween, or there are special functions that add/remove particular tween from/to a group, e.g.
SetTweenGroup(int tween_id, int group);, where passing group = 0 would mean basically no particular group.

Afterwards, you could have group actions, like PauseTweenGroup(int group); and UnpauseTweenGroup(int group), and anything else what is useful.

@edmundito edmundito added this to the 3.0.0 milestone Nov 9, 2022
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

2 participants