Transitions with an image inbetween?
Posted: Mon Nov 22, 2021 12:54 pm
Hi all,
I want to create a transition where A goes to B via an animated image. The animation is:
However, I am struggling with doing this for screens. Most transitions use ATL effects or dissolve/ fade, but here the screen will change behind an overlayed image. In essence, there is no "transition" as such. It's like a curtain being pulled over a stage to reveal a new stage afterward. I don't think it's too complicated, but I've tried to add it to screen buttons and it doesn't work:
In screens:
Then, when the game starts:
But it doesn't work correctly
I'd really like to make overlay_startup into a transition but I don't think there is a way to do that with an image, right?
Thanks in advance.
I want to create a transition where A goes to B via an animated image. The animation is:
Code: Select all
image overlay:
"transparent" # shows A here
.2
"overlay1.png"
.2
"overlay2.png"
.2
Solid("#FFFFFF") # shows B here
1.0
"overlay2.png"
.2
"overlay1.png"
.2
"transparent"Code: Select all
image overlay_on:
"transparent"
.2
"overlay1.png"
.2
"overlay2.png"
.2
Solid("#FFFFFF")
image overlay_off:
Solid("#FFFFFF")
.5
"overlay2.png"
.2
"overlay1.png"
.2
"transparent"
Code: Select all
button:
style "mm_button"
text _("New Game") style "mm_button_text"
action [Show("overlay_startup"), Start()]
# etc
screen overlay_startup():
zorder 1000
add "overlay_on"
timer 2.0 action Hide("overlay_startup")Code: Select all
label start:
scene irl chapter1bg
show overlay_off
pause 2
Thanks in advance.