Just posting a quick guide to using a movie (such as webm) for your main menu, as I spent a bit of time today trying to work out all of the kinks! (I was missing one line of code.)
The code uses a webm video in the background with imagebuttons over it. This is the result! (in a few animated frames for easy showing.)
Thank you very much! This is very helpful. If you dont mind me asking, what exactly does 'on replace' and 'on replaced' do? I assume they do the same as show and hide judging by the code, only with the diffrence that thats what happens if the mian menu isnt called/shown by a commend but by return etc?
mitoky wrote: ↑Sat Dec 23, 2017 7:10 pm
Thank you very much! This is very helpful. If you dont mind me asking, what exactly does 'on replace' and 'on replaced' do? I assume they do the same as show and hide judging by the code, only with the diffrence that thats what happens if the mian menu isnt called/shown by a commend but by return etc?
Those are actually what tripped me up for awhile, which is why I thought a little example of the code might help others, too. As far as I can tell, 'on replace' means when the menu replaces a screen (such as, you're coming back from the preferences), and 'on replaced' means when the menu is replaced by something, like when you go into preferences.
mitoky wrote: ↑Sat Dec 23, 2017 7:10 pm
Thank you very much! This is very helpful. If you dont mind me asking, what exactly does 'on replace' and 'on replaced' do? I assume they do the same as show and hide judging by the code, only with the diffrence that thats what happens if the mian menu isnt called/shown by a commend but by return etc?
Those are actually what tripped me up for awhile, which is why I thought a little example of the code might help others, too. As far as I can tell, 'on replace' means when the menu replaces a screen (such as, you're coming back from the preferences), and 'on replaced' means when the menu is replaced by something, like when you go into preferences.
I was missing one of the replace/d tags and the video kept disappearing when I went into preferences and back out via return.