Is it possible to create Layered Side Images?

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
CeruliDaruli
Newbie
Posts: 7
Joined: Sat Apr 25, 2020 9:38 am
Tumblr: cerulisketch
Deviantart: BubbkeGumHippo
Contact:

Is it possible to create Layered Side Images?

#1 Post by CeruliDaruli »

Basically asking if it's possible to have a layered side image that operates similarly to a regular sprites. Meaning you can request a certain face and get it and also change some of the faces. I'm pretty new to Renpy, but can get by, but it'd be nice ot have a more complex side image.

Thank you!!

anonymouse
Newbie
Posts: 23
Joined: Wed Oct 10, 2018 4:32 pm
Contact:

Re: Is it possible to create Layered Side Images?

#2 Post by anonymouse »

I don't know about layered side images, but I use a ConditionSwitch that may get you the effect you're after.

Code: Select all

image side mycharacter = ConditionSwitch(
    "character_emote == 'happy'", "side_mycharacter_happy.png",
    "character_emote == 'sad'", "side_mycharacter_sad.png")
    
Just set the character_emote variable to adjust how the side image appears.

Post Reply

Who is online

Users browsing this forum: Bing [Bot]