In a cut scene, I have the following problem:
I use three screens:
- One is for displaying subtitles.
- One is for calling the subtitle screen with a timer and the number of the line to be shown.
- One is for the foreground of the graphics. The foreground has some animation running (using transforms).
Everything works as it should, but the ATL animation of the foreground resets every time the timer calls the subtitles.
The effect does not happen when I put the subtitles behind the animation, but the subtitles should obviously not be covered up by the animation, so this is not a workaround...
I am puzzled as why this actually causes a reset and why only if the screen is behind the one with the timer. is this a bug or is there a reason behind it? If somebody would have an idea on that, then this might be a first step in solving the problem...
Thank you in advance for your help!
Here's a simplified code sniplet:
Code: Select all
show screen subtitle_caller
show screen animation
pause 20
screen animation:
add "foreground.png" at transform:
zoom 5
ease 20 zoom 1
screen subtitle_caller:
timer 2 action [Hide("subline"),SetVariable("sublinenumber",0),Show("subline")]
timer 5 action [Hide("subline"),SetVariable("sublinenumber",1),Show("subline")]
screen subline:
text subtitle_for_cutscene[sublinenumber]