What I want to do: I have an interactive menu on the screen that can be used at any time. One option of it does change a variable which is reflected in the images used in the story via DynamicImage. The problem is that I try to smooth the sudden change by adding a sort of cut scene and then revert back to the original place in the story where the change has taken place.
Imagine: Superman in his office clothes in the office. User presses "Wear Costume" button. What I want is to ease the switch from office clothes to Superman in his costume. So I want to put a blurred version of the current background image over ANYTHING that is currently visible. Then show 2 to 3 images where Superman strips off his suit and dons his costume along with some VISIBLE snazzy lines of text and then remove all that and return to the previous image where Superman now wears his costume instead of the office suit.
I tried to define a new screen and add the blurred background image to it. Which worked. When I set the zorder to 0 it covered everything and the text during the change was visible (Ah, such a relief to get out of this suit ... etc.) BUT when I tried to add the images of the change, those did not appear. I used show and tried zorder with values greater than 0 but they never showed up. When I removed my screen they DID show up so filenames, etc. are ok - they just won't pop over the newly loaded image. For the screen I tried:
Code: Select all
screen htf_cutscene():
# zorder 0
add "bg room blurry.png" xalign 0.0 yalign 1.0
Code: Select all
label ChangeCostume:
show screen htf_cutscene
show guy change part1 zorder 1
K "Ah - how I hate these office clothes"
$ heroed = True
$ append = "herosuit"
show guy change part2 zorder 1
K "This so much more me!"
hide screen htf_cutscene
hide guy change part2
return()
The two text lines appear and are visible - check
The two images with show do NOT show up - fail
When the code is done it restores the image that was visible when the button was clicked - check
Our hero now wears the costume instead of the office suit thanks to DynamicImage and the variable append - check
So if anyone could help me with why "show ...." does NOT show the images, I would be quite happy ...