How to make a Main menu with a video background?

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
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.
Post Reply
Message
Author
User avatar
Yuzu-kun ^-^
Newbie
Posts: 15
Joined: Sat Apr 12, 2014 7:18 am
Projects: Plantasia
IRC Nick: Yuzu-kun
Location: Philippines
Contact:

How to make a Main menu with a video background?

#1 Post by Yuzu-kun ^-^ »

Hey guys, do you have an idea how to make a main menu... with a moving background or atleast a Video-like background...
Uhm... similar main menu like Homeward with changing backgrounds... or Always Remember Me Main Menu http://steamcommunity.com/sharedfiles/f ... d=93095629

User avatar
xela
Lemma-Class Veteran
Posts: 2481
Joined: Sun Sep 18, 2011 10:13 am
Contact:

Re: How to make a Main menu with a video background?

#2 Post by xela »

Create an atl animation or a movie and put it on the main screen (in screens.rpy).
Like what we're doing? Support us at:
Image

User avatar
Donmai
Eileen-Class Veteran
Posts: 1958
Joined: Sun Jun 10, 2012 1:45 am
Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question, To The Girl With Sunflowers
Projects: Slumberland
Location: Brazil
Contact:

Re: How to make a Main menu with a video background?

#3 Post by Donmai »

Image
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)

User avatar
barsunduk
Regular
Posts: 33
Joined: Fri Jul 18, 2014 1:06 pm
Completed: «Crystal City», «Mega City», «Kilmonger», «Neuronaut», «Love, Death & Veggies», «Arrow Tourney», «Big Red Hood: Halloween», «Succubus Throne»
Projects: «Swordsman Tourney», «This Tiny Galaxy»
Organization: 7DOTS
itch: 7dots
Contact:

Re: How to make a Main menu with a video background?

#4 Post by barsunduk »

Yuzu-kun ^-^ wrote:...Video-like background...
you can make a real video-background:

Code: Select all

# script.rpy
init python:
 style.mm_root.background = None
 
init:
 image movie = Movie(size=(config.screen_width, config.screen_height)) # stretch to windowsize

label main_menu:
 scene movie
 $ renpy.music.play("vid.ogv", channel="movie", loop=True) # short video with/without audio
 $ renpy.music.play("muz.mp3", channel="music", loop=True) # long song (you can delete this if you have music in video)
 jump main_menu_screen
 
label start:
 stop movie #!!! YOU MUST STOP VIDEO
 $ renpy.music.stop #if you have a music - you can stop it too

Post Reply

Who is online

Users browsing this forum: Google [Bot]