Code: Select all
default elena_talk = False
define e = Character("Elena")
image img1 = "img1.jpg"
image elena_mouthstill = "mouth1.png"
image elena_talking:
"mouth1.png"
0.2
"mouth2.png"
0.13
"mouth3.png"
0.13
"mouth2.png"
0.13
"mouth3.png"
0.13
"mouth2.png"
0.13
"mouth1.png"
3.4
repeat
image elena_eyes:
"eyes1.png"
choice:
3.4
choice:
5.1
choice:
4.2
choice:
3.9
"eyes2.png"
.09
"eyes3.png"
.09
"eyes2.png"
.09
"eyes1.png"
.09
repeat
image elena = Composite((700, 960),
(0, 0), "base.png",
(0, 0), ConditionSwitch(
"elena_talk", "elena_talking",
"True", "elena_mouthstill"),
(0,0), "elena_eyes")
label start:
scene img1 with dissolve
show elena with dissolve
play music "bgmusic.ogg"
$ elena_talk = True
e "Hey, didn't see you there."
$ elena_talk = False
"Oh hey Elena, could you help me with something real quick?"
$ elena_talk = True
e "Sure, I don't have much to do now anyways."
return