Skip to content

Instantly share code, notes, and snippets.

@videlais
Last active December 26, 2015 00:29
Embed
What would you like to do?
ActionScript 3 Example 6 NPCSprite Version 1
package
{
/**
* ...
* @author Dan Cox
*/
import org.flixel.*;
public class NPCSprite extends FlxSprite
{
public var speech:Array;
public function NPCSprite(X:Number = 0, Y:Number = 0, Image:Class = null)
{
super(X, Y, Image);
immovable = true;
speech = new Array();
}
public function addSpeech(line:String):void
{
speech.push(line);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment