[Solved] Conditional side image
Posted: Sat Jul 11, 2020 1:13 pm
Hey. I have a question regarding side images which I hope I could get some help with.
I am trying to make a side image for my main character that is placed at a different x,y pos than the regular images for the other characters.
I know it has something to do in here:
But I am not quite sure how to go about doing this. I tried:
But it always ends up using the else statement regardless. Any clues?
This is my main character definition:
I am trying to make a side image for my main character that is placed at a different x,y pos than the regular images for the other characters.
I know it has something to do in here:
Code: Select all
if not renpy.variant("small"):
add SideImage() xalign 0.25 yalign 0.80
Code: Select all
if not renpy.variant("small"):
if Character() == main_character:
add SideImage() xalign 0.65 yalign 0.80
else:
add SideImage() xalign 0.25 yalign 0.80
This is my main character definition:
Code: Select all
define mc = Character("[main_character]",
color = "#FFBFFF",
image = "mc")
image side mc talk = "side_images/side_mc_talk.png"