Character always in front of objects

  • #1, by stered86Sunday, 22. May 2016, 12:27 8 years ago
    Hi, everybody!
    I'm new here, but I already need help with a specific issue!

    What I'm trying to do is showing a narrator character, so what I did is essentially create a blank character with just a talking animation. Using this method, the character is invisible all of the time except for when he talks. Problem is I always have to struggle with the center object positions, and it takes me a lot of time to do that for each scene. In a particular scene I haven't been able to put the character in front of the scene objects, as you can see in the image. " border="0" alt="" />

    I probably could handle this by linking an interface to the character, but I was wondering if there was a simpler solution to this problem. Isn't there a way to ALWAYS put a character in front of everything in a scene? Maybe using LUA?

    Thanks in advance to anybody who will try to help me!


    62 Posts

  • #2, by sebastianSunday, 22. May 2016, 13:26 8 years ago
    The character center has to be above (higher value) than all other objects in the screen.
    By that it gets displayed above objects with a lower value...

    But for a narrator i would suggest to display a narrator text and if needed a interface with his face as you mentioned.

    Thread Captain

    2346 Posts

  • #3, by afrlmeSunday, 22. May 2016, 13:59 8 years ago
    It would be more beneficial for you to use an interface for this & the display narration text action found under miscellaneous.

    You can use Lua to force the position of the text to wherever you want. It's faster. As for the draw order, it all depends on the position of the character on the screen. Characters will always be drawn in front of anything with a object center value of -1, whereas anything greater than the characters current position will be drawn in front of the character.

    Text & interfaces & cursors will always be drawn on top of everything.


    7278 Posts

  • #4, by stered86Sunday, 29. May 2016, 17:40 8 years ago
    I followed your suggestions and decided to link a simple interface to the main character, using narration text to show his thoughts.

    Thank you very much, guys!


    62 Posts