flixel icon indicating copy to clipboard operation
flixel copied to clipboard

pause FlxFlicker

Open Geokureli opened this issue 1 year ago • 2 comments

Add pause and resume to FlxFlicker, I saw it in the Funkin branch

Geokureli avatar Mar 13 '24 19:03 Geokureli

For context with regards to the double release bug, I encountered that when I wanted to make a slower flicker, followed by a faster flicker, then stop flickering.

However, calling FlxFlicker in the onComplete callback would destroy any existing flickers on the object, then recycle that destroyed flicker, but the recycled flicker was the one currently calling onComplete so it would immediately call release on the flicker that was supposed to be active.

EliteMasterEric avatar Mar 13 '24 19:03 EliteMasterEric

Note: I added FlxTween.flicker, in https://github.com/HaxeFlixel/flixel/pull/3086, which offsers pausing and resuming but I may still add them to FlxFlicker

Geokureli avatar Mar 18 '24 17:03 Geokureli