HaxeFlixel / flixel

Free, cross-platform 2D game engine powered by Haxe and OpenFL
https://haxeflixel.com/
MIT License
1.96k stars 432 forks source link

Maybe try to integrate tweeners from FlashPunk/HaxePunk #74

Closed Beeblerox closed 12 years ago

goshki commented 12 years ago

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.

Beeblerox commented 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)

Beeblerox commented 12 years ago

Ok. I think I made it.