Help changing a layered side image's expr when not speaking [SOLVED]

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
pyopyon
Veteran
Posts: 450
Joined: Thu Aug 29, 2013 4:35 am
Completed: https://chouette.itch.io/
Projects: Ocean Pearls, Catching the Fox [NaNo16], Singles
Organization: Jellyfish Parade
Tumblr: jelpiparade
Skype: miss.chouette
Soundcloud: pyopyon
itch: chouette
Contact:

Help changing a layered side image's expr when not speaking [SOLVED]

#1 Post by pyopyon » Thu Jul 18, 2019 4:45 am

Hello! I'm using a layered side image for my side sprite, and I wanted it to be permanently on the screen, so I used:

init python:
config.side_image_tag = "ex"


It works like a dream! Now, because I am using layered images, when changing expressions, I normally use her image tag. For example:

ex clothes happy "Hello all!"

But I've come against an obstacle--namely, there are times when a scene changes, but the side sprite is not the first to speak--meaning I cannot declare her image, leaving the side sprite completely bare in the meantime.

How can I set the expression at the very beginning of a scene so that it's not a naked base with an unchangeable expression?

scene bus stop with fade

"The bus driver stops the bus." ---> at this line, my side sprite is onscreen, totally naked because #layered images

ex clothes happy "Yay, I didn't miss my stop!"
Image ImageImage

WiP: Image

✿ Writer for Trade/Commission ✿

User avatar
pyopyon
Veteran
Posts: 450
Joined: Thu Aug 29, 2013 4:35 am
Completed: https://chouette.itch.io/
Projects: Ocean Pearls, Catching the Fox [NaNo16], Singles
Organization: Jellyfish Parade
Tumblr: jelpiparade
Skype: miss.chouette
Soundcloud: pyopyon
itch: chouette
Contact:

Re: Help changing a layered side image's expr when not speaking [SOLVED]

#2 Post by pyopyon » Thu Jul 18, 2019 12:09 pm

So, I was offered some assistance and learned this way!

After you declare the side image tag, copy and paste it, remove the word "side" and replace all of the variables will null functions. For example, if before, I declare my image like this:

Code: Select all

layeredimage side augustina:

    always:
        "augustina_base"

    group outfit:

        attribute dress:
            "augustina_outfit_dress"

        attribute jeans:
            "augustina_outfit_jeans"
I would now be declaring it like this:

Code: Select all

layeredimage augustina:

    always:
        Null()

    group outfit:

        attribute dress null

        attribute jeans null
...etc. This will make it so that you can use show functions, and it won't show an image behind the textbox as well. :^)
Image ImageImage

WiP: Image

✿ Writer for Trade/Commission ✿

Post Reply

Who is online

Users browsing this forum: OddTillTheEnd, _ticlock_