Multi-layered world sprites

Remember, just because you request it, that doesn't mean you'll get it.

Moderator: GZDoom Developers

N00b
Posts: 12
Joined: Sat Mar 04, 2023 8:33 am

Multi-layered world sprites

Post by N00b »

Would it be possible to implement attaching multiple world sprites to a single actor, similarly to PSprites? Or, maybe there is already a ZScript way to control the sprite drawing order for actors with equal 2D coordinates (I don't mean the Boom compatibility option)? The use case is equipping monsters with armor pieces.
Erwyn
Posts: 1
Joined: Mon Aug 21, 2023 9:47 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia (Modern GZDoom)
Contact:

Re: Multi-layered world sprites

Post by Erwyn »

Hello,

To my knowledge, GZDoom does not natively support the attachment of multiple global sprites to a single actor as with PSprites. However, there are ways to control the drawing order of sprites for actors with equal 2D coordinates, by playing with render labels and using specific sprite layers. For armor attachment, it may be necessary to work with custom scripts to simulate this effect.
N00b
Posts: 12
Joined: Sat Mar 04, 2023 8:33 am

Re: Multi-layered world sprites

Post by N00b »

Thanks! Could you please clarify what you mean by render labels and sprite layers?
My problem was that I accidentaly enabled the software rendering mode when testing attached actors (and got them clipping through each other in a sort of Z-fight), in hardware the sprites sorted fine. For my purposes attached actors should be enough.
Post Reply

Return to “Feature Suggestions [GZDoom]”