Skip to content

Commit

Permalink
Add convenience functions to FlxFlicker.
Browse files Browse the repository at this point in the history
  • Loading branch information
EliteMasterEric committed Mar 13, 2024
1 parent 44f2961 commit 5823c46
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions flixel/effects/FlxFlicker.hx
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,16 @@ class FlxFlicker implements IFlxDestroyable
progressCallback = null;
}

public function pause():Void {
if (timer == null) return;
timer.active = false;
}

public function resume():Void {
if (timer == null) return;
timer.active = true;
}

/**
* Starts flickering behavior.
*/
Expand Down

0 comments on commit 5823c46

Please sign in to comment.