Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public var nextState:Int->FlxState;
- Blink(Snow04.new);
- public function Blink(state:Int->FlxState):Void
- {
- nextState = state;
- FlxTween.num(0, 1, 0.8, { onComplete: switchScene } );
- textbox.blink.animation.play("BlinkOut");
- }
- public function switchScene(tween:FlxTween):Void
- {
- FlxG.switchState(nextState(0));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement