- Aug 13, 2019
- 1,898
- 2,923
I'm having a problem here. I want a single character to be shown as soon as they talk. Problem is that doing this takes me a lot of "Show/Hide" to the point of being ridiculous. I'm trying a lot of things, but using layeredimages is complicating things to me. "For example, I need to define the image twice for it to work, once "normal" and once "side image", which takes extra data, not much, but it does. Secondly, I can't show two side images at the same time, which yes, is kind of the point of using them, but I want one to show on the left, and one on the right, while the right one constantly change.
I changed the side image variant in the screens.rpy to show the MC, in this case char3
And here an example
What I want is to add for the image on the right to not disappear if I show the image on the left. As I said, layered images with extra tags don't work correctly, I guess I can try to hard define them with blocks instead of leaving it to ren'py, but it would still disappear because of the same tag. I was thinking on adding a custom tag to the images (Because I don't mind if they are or are not side images, I only want the player image to be a side image), but no idea on how to make a custom tag while defining layeredimage.
I changed the side image variant in the screens.rpy to show the MC, in this case char3
Python:
if not renpy.variant("small"):
if who == "Player":
add SideImage() yalign 1.0 xalign 0.0
else:
add SideImage() yalign 1.0 xalign 1.0
Python:
label start:
c1 old neutral "Hey Player"
p "Hey, my face in on the left bottom."
c1 "Yeah, but I dissappeared and I still have to input all the attributes."
c2 old neutral "I do appear correctly."
p "But she dissappears again if I talk."
define p = Character("Player", image="player")
define c1 = Character("char1", image="char1")
define c2 = Character("char2", image="char2")
layeredimage side player:
always:
"player"
group face:
attribute angry
attribute happy
attribute lewd
attribute neutral default
attribute sad
layeredimage char1:
always:
"char1_base"
group outfit:
attribute old
group face:
attribute angry
attribute happy
attribute lewd
attribute neutral default
attribute sad
layeredimage side char1:
always:
"char1_base"
group outfit:
attribute old
group face:
attribute angry
attribute happy
attribute lewd
attribute neutral default
attribute sad
layeredimage char2:
always:
"char2_base"
group outfit:
attribute old
group face:
attribute angry
attribute happy
attribute lewd
attribute neutral default
attribute sad
layeredimage side char2:
always:
"char2_base"
group outfit:
attribute old
group face:
attribute angry
attribute happy
attribute lewd
attribute neutral default
attribute sad
return