Page 1 of 1

[HELP] how to attach animations so that the character won't be obscured?

Posted: Thu Feb 20, 2020 9:35 am
by ABacker
Here is the thing, I need to attach some animations to the 'constant-combinator', since it doesn't support animations.

The render_layer of 'constant-combinator' is 'object', and can't be changed. And it has a static image so that it can be previewed.

The animations prototype is 'simple-entity' with render_layer 'higher-object-under' so that the animations won't be obscured by the 'constant-combinator'.

But, the animations will overshadow the character. It seems that the render_layer of the character is higher than 'object' but lower than 'higher-object-under'. But there isn't a layer between them. What should I do?

Help me, thanks. ^^

Re: [HELP] how to attach animations so that the character won't be obscured?

Posted: Thu Feb 20, 2020 10:26 am
by posila
Character is in object layer too.
Only way for you to solve this, is to create the simple entity on a position with slightly greater value of Y coordinate than the combinator.

I'll add secondary_draw_order for simple entity prototypes for 0.18.8, so you can use that to adjust ordering when the combinator and the simple entity have exactly same position.

Re: [HELP] how to attach animations so that the character won't be obscured?

Posted: Thu Feb 20, 2020 11:25 am
by ABacker
posila wrote: Thu Feb 20, 2020 10:26 am Character is in object layer too.
Only way for you to solve this, is to create the simple entity on a position with slightly greater value of Y coordinate than the combinator.

I'll add secondary_draw_order for simple entity prototypes for 0.18.8, so you can use that to adjust ordering when the combinator and the simple entity have exactly same position.
It works. Nice, thanks. :D