Wintermute Engine Forum

Wintermute Engine => Technical forum => Topic started by: Darky on March 07, 2010, 07:52:43 PM

Title: Load .entity file into scene
Post by: Darky on March 07, 2010, 07:52:43 PM
I want to load a .entity file into my scene but I need it to be in front of some other sprites and yet behind others as well. So I want something like:
- Layer 1 from Scene Edit
- Layer 2 from Scene Edit, the Entity I wanna load gets into here
- Layer 3 from Scene Edit

But I don't quiet figure it out how to load it that way. I need it because the entity has to be able to talk in a font of my choosing and I want to include other entitys who talk in a similiar fashion as well.

Here is a bit I tried but did not work:
Code: Text
  1. var FisherLayer = Scene.GetLayer("fisher");
  2. global Fisher = FisherLayer.AddEntity("entities/fisher1/fisher1.entity");
  3. Fisher.SkipTo(793, 484);
  4. Fisher.Scale = 100;
  5.  
Title: Re: Load .entity file into scene
Post by: Darky on March 12, 2010, 04:21:22 PM
I'm still puzzled over this. I don't think everyone uses actors for the talking things or do you? So if not, how do you guys load your entity so that it is not stuck behind the other layers?