if(StateTheOffice==null)
{
StateTheOffice.Visited = false;
// add scene states here
Sleep(1000);
actor.SkipTo(226, 435);
actor.Active = false;
actor.PlayAnim("actors\Ray2D\dd\talk.sprite");
actor.Talk("Who´s disturbing my rest at this hour?");
phone.Talk("I´m sorry Mr. Hammond, I´m desperate, my wife has been taken");
actor.GoTo (502, 450);
actor.Talk ("I hate to be disturbed at this time in the night, but this smells really bad.");
actor.Talk ("So let´s find her, and see what´s behind the curtain");
actor.Active = true;
}
if(!StateTheOffice.Visited)
{
StateTheOffice.Visited = true;
var phonecall = Scene.GetNode("phonecall");
phonecall.SetFont("fonts\chaparral.font");
actor.Active = false;
actor.SkipTo(226, 435);
actor.PlayAnim("actors\Ray2D\dd\talk.sprite");
actor.Talk("Who´s disturbing my rest at this hour?");
phonecall.Talk("I´m sorry Mr. Hammond, I´m desperate, my wife has been taken");
actor.GoTo (502, 450);
actor.Talk ("I hate to be disturbed at this time in the night, but this smells really bad.");
actor.Talk ("So let´s find her, and see what´s behind the curtin");
actor.Active = true;
// this is our first visit in this scene...
}
if(StateTheOffice==null)
{
StateTheOffice.Visited = false;
// add scene states here
Game.Interactive = false;
var phonecall = Scene.GetNode("phonecall");
phonecall.SetFont("fonts\chaparral.font");
actor.SkipTo(226, 435);
actor.Talk("Who´s disturbing my rest at this hour?");
phonecall.Talk("I´m sorry Mr. Hammond, I´m desperate, my wife has been taken");
actor.Talk ("Who is this?");
actor.GoTo (502, 450);
actor.Direction = DI_DOWN;
actor.Talk ("I hate to be disturbed at this time in the night, but this smells really bad.");
Game.Interactive = true;
}