So, I'm trying to have easein / easeout transitions that apply to the overlay layer. This is because I am displaying an image on top of a renpy screen (the master layer appears behind the screen so I can't use it). I want the image to enter from the left, then swipe out to the right.
I already know I should use define.move_transitions() to create a different 'ease' move family for the overlay layer that I called 'easeol'.
The strange thing is, this works just fine for the entering transition (easeolinleft), but the leaving transition just won't work. The image hides without any transition at all.
Here is the code snippet. I know very little about transitions, so I'm probably doing something wrong, but I can't figure it out:
Code: Select all
label challenge(result, _sound=None):
$ define.move_transitions("easeol", 0.5, _ease_time_warp, _ease_in_time_warp, _ease_out_time_warp, layers=["overlay"])
if result:
if _sound:
play sound s_success
show success onlayer overlay with easeolinleft
pause 1.0
hide success with easeoloutright
else:
if _sound:
play sound s_crash
show failure onlayer overlay with easeolinleft
pause 1.0
hide failure with easeoloutright
return