Page 1 of 1

Layering sprite images incorrectly?

Posted: Wed May 01, 2019 4:10 pm
by malakme
Hi everyone! I'm very new to Ren'Py so I'm confused about how and where to code in a family/group of sprite images.

I've tried using this page for help ( https://www.renpy.org/doc/html/layeredi ... ered-image ), but honestly I'm at a loss.

As it stands right now, I'm testing out how to change outfits on one sprite who has 4-5 emotes. In all of her emotes she's nude, but I'm trying to layer outfits over her. As the game plays out, I should be able to change her emote (base layer) without having to re-input her clothing (outfit layer) every time I do, right?

I've read that you can set it up so that all you have to write is something like "show kuebineutral uniform" or "show kuebihappy home" and I'm wondering how to set that up.

Thanks in advance for any help you can offer!

Re: Layering sprite images incorrectly?

Posted: Mon May 06, 2019 12:09 pm
by nature1996
You might want to use a dynamic displayable for that: https://www.renpy.org/doc/html/displaya ... splayables
or a sprite: https://www.renpy.org/doc/html/sprites.html#sprites

The show statement has the tag "behind" that let you show something behind something else: https://www.renpy.org/doc/html/displayi ... -statement
You could also use the "zorder" tag, though nearby character might end up clipping in each other.

But ultimately, I think you are looking for a composite: https://www.renpy.org/doc/html/displaya ... #Composite

I don't have much experience though, so there might be something else more appropriated for your project.

Re: Layering sprite images incorrectly?

Posted: Mon May 06, 2019 2:46 pm
by Scribbles
Here is a really good tutorial on layered images: https://tofurocks.itch.io/renpytut-layeredimage using layered image is how you just type 'show eileen uniform' and then 'show eileen sad' will still show her in her uniform. You just have to group the attributes properly it's really simple! The tutorial I linked to is really great too