I'm just starting to use Renpy. I don't know much about programming. I've lurked around tons of this forum's posts and I can't seem to make it work. Here's what I left
in screens.rpy in my last try:
screen main_menu():
style_prefix "main_menu"
add Movie(size=(1920, 1080))
on "show" action Play("movie", "try.mkv", "loop=True")
on "hide" action Stop("movie")
on "replaced" action Stop("movie")
on "start" action Stop("movie")
frame:
pass
use navigation
if gui.show_name:
vbox:
text "[config.name!t]":
style "main_menu_title"
text "[config.version]":
style "main_menu_version"
style main_menu_frame is empty
style main_menu_vbox is vbox
style main_menu_text is gui_text
style main_menu_title is main_menu_text
style main_menu_version is main_menu_text
style main_menu_frame:
xsize 420
yfill True
background "gui/overlay/main_menu.png"
style main_menu_vbox:
xalign 1.0
xoffset -30
xmaximum 1200
yalign 1.0
yoffset -30
style main_menu_text:
properties gui.text_properties("main_menu", accent=True)
style main_menu_title:
properties gui.text_properties("title")
style main_menu_version:
properties gui.text_properties("version")
The video starts fine when I launch the project, but if I click any menu other than start (say, options) it dissapears, and when I try to go back the main menu, the background just turns as the transparent squares thing. If I start the game, before clicking any other menu, the video just overrides the screen and doesn't hide. I have to open the menu for it to disappear.
I'm sorry if this is a dumb doubt, but I just haven't be able to make it work. Sorry for my English
How to properly use a video as main menu background?
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
- Imperf3kt
- Lemma-Class Veteran
- Posts: 3791
- Joined: Mon Dec 14, 2015 5:05 am
- itch: Imperf3kt
- Location: Your monitor
- Contact:
Re: How to properly use a video as main menu background?
Take a look at this post:
viewtopic.php?f=8&t=47552#p474525
From the looks of it, you should add your movie to the navigation screen instead / also.
viewtopic.php?f=8&t=47552#p474525
From the looks of it, you should add your movie to the navigation screen instead / also.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
Twitter
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
Who is online
Users browsing this forum: Bing [Bot], Google [Bot], RandomHuman64