_______
I want to play an intro song that starts at the splashscreen, but doesn't loop.
This is my code, but no matter what I try, the music keeps looping.
Code: Select all
define someMusic = 'song.ogg'
#script.rpy
init python:
renpy.music.register_channel(name='music', mixer='music', loop=False, stop_on_mute=True, tight=False, file_prefix=u'', file_suffix=u'', buffer_queue=True, movie=False, framedrop=True)
label splashscreen:
$ renpy.music.play(filenames=someMusic, channel='music', loop=False, if_changed=True, fadein=4.0, fadeout=2.0)
#options.rpy
define config.main_menu_music = someMusic