How do I make a character appear behind another character when they enter the scene?

All about user interface, be it customizing built-in UIs or adding new ones.
Post Reply
Stellar
Posts: 32
Joined: 30 Mar 2021 10:58

How do I make a character appear behind another character when they enter the scene?

Post by Stellar »

If I have a character in the scene, and I bring in a second character, how do I make that second character character appear behind the first character instead of in front? Thanks!

Image

idaot
support
Posts: 275
Joined: 01 Aug 2020 08:25

Re: How do I make a character appear behind another character when they enter the scene?

Post by idaot »

Hi, you can sort the characters on the z-axis via the third value in position: or pos:

Example:

; Make Sora appear at the bottom-center and in front of Felix
@char Sora pos:50,0,-1
@char Felix pos:,,0

Check the @char command guide for more information: https://naninovel.com/api/#char

Stellar
Posts: 32
Joined: 30 Mar 2021 10:58

Re: How do I make a character appear behind another character when they enter the scene?

Post by Stellar »

That worked. Thank you!

FYI for anyone reading. Be careful to put the z-axis in the right order. "-1" is in front, not behind!

Post Reply