- A base (bottom layer)
- A head with expression (middle layer)
- An arm pose (on top)
- A blush (optional layer)
Now I have set up the code like this:
Code: Select all
#########################################################################
## SERENA
define S = Character('Serena', color="#FF6600", who_suffix = ':', what_prefix='"', what_suffix='"')
define S_who = Character('???', color="#FF6600", who_suffix = ':', what_prefix='"', what_suffix='"')
default s_head = "neutral"
default s_blush = None
default s_arms = "neither"
image serena = LiveComposite(
(1719, 5448),
(0, 0), "images/characters/serena/base/base.png",
(0, 0), "images/characters/serena/head/[s_head].png",
# (0, 0), "images/characters/serena/blush/[s_blush].png",
(0, 0), "images/characters/serena/arms/[s_arms].png"
)
#########################################################################
### Technical game start
label start:
stop music
scene black
window auto
#########################################################################
### Game start
scene bg hallway1
"This is the start of the test."
show serena
S "This is me! Pose me however you want!"
$ s_head, s_arms = "annoyed", "both"
S "Just... no weird things!"
S "Get it?"
# $ s_blush = "blush1"
# S "Hey!"
return
But if I try to add the blush, it will complain that it can't find the blush file (obviously, because it's searching for a file with an empty name). Is there a way to add the blush to the composite image ONLY if the blush variable has a value? It probably could work with a conditionswitch but I can't seem to get it to work. I don't want to put an empty file in the "blush/noblush.jpg" because I simply don't want an empty file if there is a better way.