Play music only if its not already launch

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
Mirrodin
Regular
Posts: 114
Joined: Sun Mar 19, 2017 2:56 pm
Contact:

Play music only if its not already launch

#1 Post by Mirrodin »

Hi,

I have a problem with my cycle of day.
I want to launch music only if it is not already launched.
Like

if there are no music launch or music launched isnt "lala.mp3"

I use the code :

Code: Select all

    play music "sound/musique/town.mp3" fadeout 1    
What are my options ?

User avatar
Remix
Eileen-Class Veteran
Posts: 1628
Joined: Tue May 30, 2017 6:10 am
Completed: None... yet (as I'm still looking for an artist)
Projects: An un-named anime based trainer game
Contact:

Re: Play music only if its not already launch

#2 Post by Remix »

Ren'py Audio

Read especially about the various functions
Frameworks & Scriptlets:

Post Reply

Who is online

Users browsing this forum: Google [Bot]