- Apr 13, 2021
- 1,826
- 1,481
So here is what i want to accomplish.
Even if a player skips or hits enter, the transition should go smoothly.
If you picture this for a moment.
Scene is ending, music is fading out, screen is getting black. New screen shows slowly with a title, music starts, screen dims and a new scene is starting.
So far, i haven't accomplished that.
I don't want to hamper the player in any way but make it appear smoothly.
This is the code i am using. I did try several options before but either the music isn't stopping at the right time or the screen just comes on in an instant having no smooth transition. Is that even possible?
Thanks. If that isn't really possible, it's ok. But that would be really great if it did. I think.
As for the music to fade at the right moment, i usually place it at the second last dialog line. This seems to give enough time to fade out. Depending on the player though
Even if a player skips or hits enter, the transition should go smoothly.
If you picture this for a moment.
Scene is ending, music is fading out, screen is getting black. New screen shows slowly with a title, music starts, screen dims and a new scene is starting.
So far, i haven't accomplished that.
I don't want to hamper the player in any way but make it appear smoothly.
This is the code i am using. I did try several options before but either the music isn't stopping at the right time or the screen just comes on in an instant having no smooth transition. Is that even possible?
Code:
define slow_dissolve = Dissolve(5.0)
define fadehold = Fade(0.5, 1.0, 0.5)
# ending scene
stop music fadeout 2.0
e "Bsss....."
s "ah...."
scene
show black
with fadehold
jump morningday02
#new scene
label morningday02:
play music "audio/somemusic.mp3" fadein 2.0 volume 0.5
scene
show morning
with slow_dissolve
show black
scene
show morning01
with fade
As for the music to fade at the right moment, i usually place it at the second last dialog line. This seems to give enough time to fade out. Depending on the player though