Hiya! Well like the title says, I want to fade out a song while a video is played, if that's possible.
Here's what I got so far, looks like the video is blocking the script:
I tried both function room_RepExec() and function repeatedly_execute_always()
The Video plays first and only once it's finished does the fading happen.
Code: ags
Any ideas?
Here's what I got so far, looks like the video is blocking the script:
I tried both function room_RepExec() and function repeatedly_execute_always()
The Video plays first and only once it's finished does the fading happen.
function room_AfterFadeIn()
{
SetTimer (1, 20);
PlayVideo ("Video03.ogv", eVideoSkipAnyKeyOrMouse, 21);
}
function repeatedly_execute_always()
{
if (IsTimerExpired (1))
{
if (BGM.Volume == 0)
{
SetTimer (1, 0);
}
else
{
BGM.Volume -= 1;
SetTimer (1, 2);
}
}
}
Any ideas?
