31
Ask a Question / Re: How to make the score stop when actor dies
« on: July 29, 2015, 09:48:13 am »
can you export the whole project please?
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
/**
* @author Justin Espedal
*/
import com.stencyl.models.Actor;
class GlobalActorID
{
public static var actors:Map<String, Actor>;
public static function get(name:String):Actor
{
return actors.get(name);
}
public static function set(name:String, actor:Actor):Void
{
actors.set(name, actor);
}
}