Milkymalk wrote: ↑Sat Mar 24, 2018 8:00 pm
Why is it that you can't use 'on' with the 'show' statement?
You can also include 'on hide' inside a transform:
Code: Select all
transform fade_and_slide:
on show:
ease 0.0 xoffset 10 alpha 0.0
ease 0.5 xoffset 0 alpha 1.0
on hide:
ease 0.5 xoffset 10 alpha 0.0
label start:
show eileen at fade_and_slide
Well, it's a long story...
Yes, I can include 'on hide' in the first transform block, but unfortunatelly there should be two separate blocks. One for 'show' transform and another for 'hide'.
Ocelot wrote: ↑Sun Mar 25, 2018 12:37 am
I believe, the idea is to use different animations in different cases:
Not exactly, but something like this.
Sure, I also tried to perform 'with mycomposetransition' , but I couldn't create a transition that would do the same effects as the transform block.
So, as a workaround I am using another 'show' statement:
Code: Select all
transform fadein_from_right:
ease 0.0 xoffset 10 alpha 0.0
ease 0.5 xoffset 0 alpha 1.0
Code: Select all
transform fadeout_to_right:
on hide:
ease 0.5 xoffset 10 alpha 0.0
Code: Select all
show eileen at fadein_from_right
"Hello."
"And good bye."
show eileen at fadeout_to_right #As far as I understand, this would not show the same image two times, but will change transition to 'fadeout_to_right'
hide eileen #Now the image would be hidden with 'fadeout_to_right' effect