Currently, the music only starts after any user click.
I've added
Code: Select all
define config.main_menu_music = "audio/menu.mp3"
Code: Select all
define config.main_menu_music = "audio/menu.mp3"
Code: Select all
if renpy.variant("web"):
renpy.music.play("*your file music*", channel = "music", loop = true)
Have you tried this yourself? I don't think there is a solution because browsers prevent any sounds before user actions. So I added a splash page before the main screen where the player has to click to continue.gacha_kareyka wrote: ↑Wed Aug 28, 2024 3:11 pm I realise this is an old topic, but I don't care.
Try using renpy.music.play for the web version only.
I hope I've done something useful...Code: Select all
if renpy.variant("web"): renpy.music.play("*your file music*", channel = "music", loop = true)
Users browsing this forum: No registered users