Is there a way to add multiple audio files to the Main Menu?

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
Bishima
Newbie
Posts: 10
Joined: Fri Nov 29, 2019 10:45 am
Contact:

Is there a way to add multiple audio files to the Main Menu?

#1 Post by Bishima »

I have a sound effect that I want to loop on top of a song on the main menu. I could do this manually by just editing the files together but I'd much rather do it through Renpy itself. Is there a way?

(I tried looking this up but couldn't find anything, sorry if it's been answered before)


Right now this is all I have to play the song, wondering if there was a way to add a sound effect to loop on top of it.

Code: Select all

## Uncomment the following line to set an audio file that will be played while
## the player is at the main menu. This file will continue playing into the
## game, until it is stopped or another file is played.

define config.main_menu_music = "Concerto No 3.mp3"
Thanks for any advice you can give!

User avatar
vollschauer
Veteran
Posts: 231
Joined: Sun Oct 11, 2015 9:38 am
Github: vollschauer
Contact:

Re: Is there a way to add multiple audio files to the Main Menu?

#2 Post by vollschauer »

Perhaps not the best solution....

Code: Select all

screen main_menu():

    on "show" action Play("sound", "effect.ogg", loop=True)

Post Reply

Who is online

Users browsing this forum: decocloud, Majestic-12 [Bot]