Skip to content

Instantly share code, notes, and snippets.

@videlais
Created October 20, 2013 03:03
Embed
What would you like to do?
ActionScript 3 Example 6 NPCSpriteGroup Version 1
package
{
/**
* ...
* @author Dan Cox
*/
import org.flixel.*;
public class NPCSpriteGroup extends FlxGroup
{
private var dialog:FlxDialog;
public function NPCSpriteGroup()
{
dialog = new FlxDialog(0, 160, FlxG.width, 80);
dialog.setFormat(null, 8, 0xFFFFFFFF);
dialog.finishCallback = removeDialogBox;
}
override public function update():void
{
super.update();
}
private function removeDialogBox():void
{
remove(dialog);
player.isStopped = false;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment