Hey, after some more investigation on TransitionCondition Switch and looking into live Composite, I ended up figuring a way to get the result I wanted! Here's a small excerpt in case it'll help some other noob sometime:
I use "emood" as a variable to change the expression/pose of this particular character as needed, and "work" as a variable to change the character's outfit depending on whether they're at work or not since that's a recurring scene.
Code: Select all
image eina 2 = LiveComposite(
(1030,1212),
(0,0), "eina/base 2.png",
(0,0), TransitionConditionSwitch(Dissolve(0.2, alpha=True),
"emood == 'angry' ", "eina/angry 2.png",
"emood == 'worried'", "eina/worried.png",
"emood == 'smirk' ", "eina/smirk.png",
"emood == 'hmph' ", "eina/hmph 2.png",
),
(0,0), TransitionConditionSwitch(Dissolve(0.2, alpha=True),
"work == False ", "null.png",
"work == True " and "emood == 'worried'" or "emood == 'smirk'", "eina/bandana.png",
"work == True " and "emood == 'angry'" or "emood == 'hmph'", "eina/bandana 2.png",
),
(0,0), TransitionConditionSwitch(Dissolve(0.2, alpha=True),
"work == False ", "null.png",
"work == True ", "eina/apron 2.png",
),
(0,0), TransitionConditionSwitch(Dissolve(0.2, alpha=True),
"emood == 'angry' ", "eina/arms what.png",
"emood == 'worried'", "eina/arms chin.png",
),
)
Thank you very much for pointing me in the right direction
Now what I'm wondering is how could I move some of those. For example:
Code: Select all
(0,0), TransitionConditionSwitch(Dissolve(0.2, alpha=True),
"emood == 'angry' ", "eina/angry 2.png",
"emood == 'worried'", "eina/worried.png",
"emood == 'smirk' ", "eina/smirk.png",
"emood == 'hmph' ", "eina/hmph 2.png",
),
There, the smirk face needs to be placed at (5,10). Could I make the switch change its position?