Please login or register.

Login with username, password and session length
Advanced search  

News:

Forum rules - please read before posting, it can save you a lot of time.

Author Topic: Load .entity file into scene  (Read 2864 times)

0 Members and 1 Guest are viewing this topic.

Darky

  • Supporter
  • Regular poster
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 109
    • View Profile
    • Spreadcamp
Load .entity file into scene
« 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.  
Logged

Darky

  • Supporter
  • Regular poster
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 109
    • View Profile
    • Spreadcamp
Re: Load .entity file into scene
« Reply #1 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?
Logged
 

Page created in 0.023 seconds with 36 queries.