There's just one problem: when THE END is about to appear, the main character's side portrait flashes on screen for just one second. It seems to fade in with the textarea on the bottom, then vanishes again as soon as the fade-in is complete.
I've determined the bug is somehow related to choice menus and transitions. The expression that's used matches the portrait used for the most recent choice menu. The bug doesn't appear if I jump to the ending sequence before the first choice menu, but does appear if I jump immediately after the first one. Likewise, the bug does not occur if I remove the fade-out/fade-in transitions.
Here's what a typical choice menu invocation looks like for me:
Code: Select all
player eyebrowroll "...what should I do..."
menu:
player "{cps=0}...what should I do...{/cps}"
"Proceed with the experiment.":
jump proceed_experiment
"Cancel the experiment.":
jump cancel_experiment
Code: Select all
define player = Character("Main Character", image="pc", color="#6000A9", what_font="DejaVuSans.ttf", callback=player_voice)
define friend = Character("Friend", image="f", color="#8A74C1", what_font="fonts/PTMono.ttc")
define centered_text = Character(None, image="narrator", what_xalign=0.5, what_text_align = 0.5, what_yalign=0.5)
image black = Solid("#000")
define fade_out = Fade(1.2, 0.6, 0, color='#000')
define fade_in = Fade(0.0, 0.6, 1.2, color='#000')
Code: Select all
scene black with fade_out
if ending == "good":
scene good_ending with fade_in
if ending == "bad":
friend "This is not the true ending!"
scene bad_ending with fade_in
pause 3.0
# BUG: player side portrait appears here for an instant
centered_text "{size=40}{k=+2}{cps=*0.2}THE END{/cps}{/k}{/size}"
Thank you very much for any help!