Skip to content

Instantly share code, notes, and snippets.

@videlais
Last active December 26, 2015 00:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save videlais/7064413 to your computer and use it in GitHub Desktop.
Save videlais/7064413 to your computer and use it in GitHub Desktop.
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