I have succeeded with the live composite itself, but when I try to add it in the code :
Code: Select all
define a = Character('Amy',callback=speaker("girl"), color = "FF3ACD",show_two_window=True,ctc="ctc_animation", ctc_position="fixed", image = "girl", window_left_padding=160,show_side_image=Image("girl normal", xalign=0.0, yalign=1.0))
Code: Select all
image side girl normal = LiveComposite(
(157, 285),
(0,0), "amy side image.png",
(29, 117), "girl eyes normal",
(58, 151), WhileSpeaking("girl", "girl mouth normal", "amy mouth closed.png"),
)
image girl normal = LiveComposite(
(187, 600),
(0, 0), "amy base.png",
(45, 164), "girl eyes normal",
(70, 200), WhileSpeaking("girl", "girl mouth normal", "amy mouth closed.png"),
)
image girl eyes normal:
"amy eyes open.png"
choice:
4.5
choice:
3.5
choice:
1.5
# This randomizes the time between blinking.
"amy eyes.png"
.25
repeat
image girl mouth normal:
"amy mouth open.png"
.2
"amy mouth open2.png"
.2
repeat
Code: Select all
default side_image = None
Code: Select all
default side_image = "girl"