The tricky part is that the video should appear not before the menu, but on top of it.
As the video is soundless, main menu music should start together with the video and when the video ends, the main menu will appear.
Adding video in "label splashscreen" section would not help, as I still need the main menu music.
So I decided to use this instruction and add movie as main menu background:
viewtopic.php?t=18695
But I modified the code to stop the video after one iteration and place it on top of other screen elements:
Code: Select all
screen main_menu():
on "show" action [Play("movie", title_video, loop=False)] #This will show the video only one time
on "hide" action Stop("movie")
on "replaced" action Stop("movie")
tag menu
add title_bg1 size(None) align(0, 0) #This picture is hidden behind the video, but when it ends the picture will appear.
use title_menu #Menu buttons and other stuff
use CG_music_menu #
I can't skip the video with just clicking or pressing a key.
So the player would have to wait till the video ends before starting the game and this is annoying.
Is there any way to skip the video in the main menu with mouse click(or key press) ?
(I tried to use "on "clicked" action Stop("movie")" but it doesn't work.)