Change Side Image Expressions [SOLVED]
Posted: Mon Jul 16, 2018 2:08 am
Hey everyone!
Sorry for the probably silly question. I'd really appreciate any help!
Okay, so basically, I've been using ConditionSwitch and LiveComposite for sprites up until now when I tried to switch over to LayeredImages instead. Following the documentation, I managed to set up the sprite and the side image with this:
I decided to go with a permanent side image (rather than only when that char is speaking), so I added
Everything works fine, and I can change expressions and stuff with say attributes
But my question is... is it possible to change the side image's expression without using say with image attribute? For example, as I said, the side image is always on screen, so I want her to react to what other characters are saying while she isn't talking, so I can't use a say with image attribute.
I tried doing a normal show line, but the problem is, the sprite also shows on screen like a normal sprite, so now there's two of the same character (one on the side, one at center of screen behind textbox) when I only want the side image to change.
If I use "show side test neutral" instead of just "show test neutral", it only shows the neutral sprite on screen while the side image stays unchanged.
Since I used to use LiveComposite and ConditionSwitch for sprites including the side sprite, I could change the side image's expressions with a $ variable any time I want, even if the character isn't talking. So I basically want to do that now but I'm not sure how without duplicating the sprite on screen. Is that possible? I'm assuming it is but I'm just missing a really obvious answer or doing something silly.
In any case, thanks for your patience, and I would be very grateful for any help!
Sorry for the probably silly question. I'd really appreciate any help!
Okay, so basically, I've been using ConditionSwitch and LiveComposite for sprites up until now when I tried to switch over to LayeredImages instead. Following the documentation, I managed to set up the sprite and the side image with this:
Code: Select all
layeredimage test:
group outfit auto
group face auto
image side test = LayeredImageProxy("test", Transform(zoom=0.5))
define t = Character("Testing", image="test")
Code: Select all
define config.side_image_tag = "test"
Code: Select all
t happy "I am now happy"
I tried doing a normal show line, but the problem is, the sprite also shows on screen like a normal sprite, so now there's two of the same character (one on the side, one at center of screen behind textbox) when I only want the side image to change.
Code: Select all
t happy "I am happy"
show test neutral
t "Now I'm neutral but there's two of me!"
Since I used to use LiveComposite and ConditionSwitch for sprites including the side sprite, I could change the side image's expressions with a $ variable any time I want, even if the character isn't talking. So I basically want to do that now but I'm not sure how without duplicating the sprite on screen. Is that possible? I'm assuming it is but I'm just missing a really obvious answer or doing something silly.
In any case, thanks for your patience, and I would be very grateful for any help!