Pausing tweens
-
Since creating a substate doesn't pause the tweens, I'm wondering if there's a way to manually pause them, even if it's some dirty hack? I tried adding
if (FlxG.state.subState != null) return;
at the beginning ofFlxTween.update()
to see what happens, and while the tweens do seem to pause, they also "complete" while in the substate, as if they hadn't paused.
-
@vasco The proper fix is to create a separate
FlxTweenManager
instance and use that instead of the global one. See https://github.com/HaxeFlixel/flixel/pull/1934 for more details.
-
@gama11 Awesome, I didn't realize there was a fix to this. It was easy to change and completely fixed the problem, thanks!