Advertisement
Guest User

Untitled

a guest
Jul 19th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Haxe 0.40 KB | None | 0 0
  1. public var nextState:Int->FlxState;
  2. Blink(Snow04.new);
  3. public function Blink(state:Int->FlxState):Void
  4.         {
  5.             nextState = state;
  6.             FlxTween.num(0, 1, 0.8, { onComplete: switchScene } );
  7.             textbox.blink.animation.play("BlinkOut");
  8.         }
  9.         public function switchScene(tween:FlxTween):Void
  10.         {
  11.             FlxG.switchState(nextState(0));
  12.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement