I was wondering if it would be possible to change a side image (expression) even though this particular character isn't speaking at the moment. I looked at https://www.renpy.org/doc/html/side_image.html and managed to make it work to a certain degree. But I keep getting an error saying the image can't be found even though the expression clearly changed. 🠚 Image 'maincharacter happy' not found
It's maybe also good to mention that our side image will stay on screen all the time. I really want to make his work. I think it adds a lot to the story
DIALOGUE EXAMPLE
Code: Select all
window show
MC neutral "I'm so bored."
show john neutral at center
J "Hey!"
show maincharacter happy
N "He hands you a present."Code: Select all
define MC = Character('[nickname]', image="maincharacter", show_two_window=True, ctc="ctc_blink", ctc_position="fixed")
define N = Character(None, ctc="ctc_blink", ctc_position="fixed")
define J = Character('John', image="maincharacter", show_two_window=True, ctc="ctc_blink", ctc_position="fixed")Code: Select all
image side maincharacter neutral = "images/CHAR/MC/neutral.png"
image side maincharacter happy = "images/CHAR/MC/happy.png"
image john neutral = "images/CHAR/JOHN/neutral.png"
Code: Select all
screen say(who, what, side_image=None, two_window=False):
# Decide if we want to use the one-window or two-window variant.
if not two_window:
# The one window variant.
window:
id "window"
has vbox:
style "say_vbox"
if who:
text who id "who"
text what id "what"
else:
# The two window variant.
vbox:
style "say_two_window_vbox"
if who:
window:
style "say_who_window"
text who:
id "who"
window:
id "window"
has vbox:
style "say_vbox"
text what id "what"
# If there's a side image, display it above the text at given position.
add SideImage() xpos 47 ypos 573