Closed Beeblerox closed 12 years ago
move Tween class to org.flixel.tweens package check if tweens are destroyed when switching states (see clearTweens() and removeTween() in World and Engine classes and destroy() method in FlxBasic) add to FlxG global tweener (see HXP and World classes)
Ok. I think I made it.
That would be interesting.
Currently I'm using Actuate and it's working OK in quite simple scenario. Yet, because it's based on ENTER_FRAME event, I'm expecting some troubles with it in more complex situations, such as nested/layered tweens (like when I have some sprite tweening and I'd like to pause the game and have some tweens running on the pause screen while the sprite tween is paused), time-scaled tweens (so I can slow down time for some specific tweens).
So yeah, some tweening functionality integrated tightly into HaxeFlixel time-step update system seems like a good idea.