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

oneshot tween callback not works #170

Closed soarcn closed 11 years ago

soarcn commented 11 years ago

callback will not works at least oneshot type tween because callback obj will be recycle before the function be triggered. not verify other type yet, but should be reproduce in any tween type which will destroy after tween been executed.

I noticed that flashpunk's tween api been changed in this part.

Beeblerox commented 11 years ago

@soarcn You're right. I've made appropriate commit on dev branch. About HaxePunk's tween system: Do you think it would be better to follow these changes in HaxePunk?

soarcn commented 11 years ago

seems haxepunk's tween change the interface quite a lot (esp. the callback from void->void to Dynamic->void). if we follow haxepunk, that will create many upgrade. and another idea is there have other way in flixel to create tween or motion. my idea is keep it simple is ok.

gamedevsam commented 11 years ago

Simple is better. We have Task Manager to create complex tween animations.