Skip to content
Browse files

Restart Transition Done

  • Loading branch information...
1 parent b0a7ef1 commit efb832786f9d5c547d44aa5ff3f721cd33f0db4b Brian R McDonald committed
Showing with 7 additions and 0 deletions.
  1. +7 −0 src/PlayState.as
View
7 src/PlayState.as
@@ -201,6 +201,13 @@ package
public function OnRestartButtonClick():void
{
+
+ FlxG.camera.fade(0xFF000000,1,OnResetFadeDone,true);
+ }
+
+ public function OnResetFadeDone():void
+ {
+ FlxG.flash();
FlxG.switchState(new PlayState(levelId));
}

0 comments on commit efb8327

Please sign in to comment.
Something went wrong with that request. Please try again.