HaxeFlixel / flixel

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

Implement FlxFlicker.pause() and FlxFlicker.resume() #3179

Closed EliteMasterEric closed 3 weeks ago

EliteMasterEric commented 3 weeks ago

During the development of Funkin', I found the need to pause an active FlxFlicker without actively destroying it and recreating it. This PR adds that functionality.

Geokureli commented 3 weeks ago

Down to merge, but note that FlxTween.flicker now exists which has all the same tween methods for pausing, resuming and cancelling. It also allows for custom "ease" logic, so you can use one tween to do a flicker that changes frequency rather than using two calls, like you mentioned

EliteMasterEric commented 3 weeks ago

Down to merge, but note that FlxTween.flicker now exists which has all the same tween methods for pausing, resuming and cancelling. It also allows for custom "ease" logic, so you can use one tween to do a flicker that changes frequency rather than using two calls, like you mentioned

Good to know, thanks for that.

Geokureli commented 3 weeks ago

Thanks!