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

Place to get help with not working mods / modding interface.
ABacker
Burner Inserter
Burner Inserter
Posts: 13
Joined: Sun Mar 03, 2019 11:48 pm
Contact:

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

Post 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. ^^
posila
Former Staff
Former Staff
Posts: 5447
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

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

Post 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.
ABacker
Burner Inserter
Burner Inserter
Posts: 13
Joined: Sun Mar 03, 2019 11:48 pm
Contact:

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

Post 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
Post Reply

Return to “Modding help”