-
Notifications
You must be signed in to change notification settings - Fork 17
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
FlxTween Enhancement #204
Comments
That's a nice addition. Any reason to avoid an |
FlxTween? Does flixel-community have tweening? |
Yeah, a very simple class was added to handle some dirty work. |
To have it work natively with flixel's update loop it might be better to have it extend FlxBasic (just another thought). |
I thought I had a good reason for it. The only thing I remember thinking was that for performance (and synchronization) reasons it may be a bad idea for each instance to have its own "ticker", but we should instead use the "global Flixel time" in some way. If we add it to the list of items that Flixel updates each frame, it would be perfect. Looking at the way the Keep in mind though, you cannot increment with
I would also recommend adding an |
Although, Also, I would like Tweens to be updated before any classes that use the tween values get their I don't see a problem in just adding a separate loop in |
In HaxeFlixel, we have a Tweens themselves are created via static methods like |
That would work! :) And that way only one item has the overhead of extending |
Then we would need a function to add FlxTweens to the manager though. |
I think I like the idea of a TweenManager as @Gama11 suggested, but I don't like the idea of tweens being automatically added. IMHO the less automatic things we have, the easier to understand what is going on. My idea:
|
While I agree on tweens not being added automatically to the manager I believe they should be removed by the manager automatically once they are finished as it would be redundant to increment the progress over 100% when it will be set back inside the tween to 100% automatically. |
In FlxTween you have to increment the tween progress yourself.
Why not have an update() function do this? Seems like the most intuitive way of doing it. Plus it works nice with flixel.
The text was updated successfully, but these errors were encountered: