Layering sprite images incorrectly?

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
User avatar
malakme
Newbie
Posts: 12
Joined: Fri Apr 26, 2019 6:34 pm
Contact:

Layering sprite images incorrectly?

#1 Post by malakme » Wed May 01, 2019 4:10 pm

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!

User avatar
nature1996
Regular
Posts: 62
Joined: Wed Jun 21, 2017 10:35 am
Contact:

Re: Layering sprite images incorrectly?

#2 Post by nature1996 » Mon May 06, 2019 12:09 pm

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.
Je parle aussi français

User avatar
Scribbles
Miko-Class Veteran
Posts: 636
Joined: Wed Sep 21, 2016 4:15 pm
Completed: Pinewood Island, As We Know It
Projects: In Blood
Organization: Jaime Scribbles Games
Deviantart: breakfastdoodles
itch: scribbles
Location: Ohio
Contact:

Re: Layering sprite images incorrectly?

#3 Post by Scribbles » Mon May 06, 2019 2:46 pm

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
Image - Image -Image

Post Reply

Who is online

Users browsing this forum: Google [Bot]