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.
-
jack_norton
- Lemma-Class Veteran
- Posts: 4067
- Joined: Mon Jul 21, 2008 5:41 pm
- Completed: Too many! See my homepage
- Projects: A lot! See www.winterwolves.com
- Tumblr: winterwolvesgames
-
Contact:
#1
Post
by jack_norton » Sat Mar 05, 2011 12:30 pm
I am trying to find what is the right syntax:
Code: Select all
play music "snd/work.ogg" loop False
doesn't work... I can use python but I'd like to know what is the right one!

I think it's correct until loop, but somehow false doesn't work (in python yes):
Code: Select all
$renpy.music.play("snd/work.ogg", loop=False)
also maybe could be useful to update the doc since not always we want looping music

-
PyTom
- Ren'Py Creator
- Posts: 15893
- Joined: Mon Feb 02, 2004 10:58 am
- Completed: Moonlight Walks
- Projects: Ren'Py
- IRC Nick: renpytom
- Github: renpytom
- itch: renpytom
- Location: Kings Park, NY
-
Contact:
#2
Post
by PyTom » Sun Mar 06, 2011 1:18 am
For the play music command, you should give it "noloop".
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama •
https://www.patreon.com/renpytom
-
jack_norton
- Lemma-Class Veteran
- Posts: 4067
- Joined: Mon Jul 21, 2008 5:41 pm
- Completed: Too many! See my homepage
- Projects: A lot! See www.winterwolves.com
- Tumblr: winterwolvesgames
-
Contact:
#3
Post
by jack_norton » Sun Mar 06, 2011 3:00 am
ahh ok thank. Would have never guessed it

-
henvu50
- Veteran
- Posts: 322
- Joined: Wed Aug 22, 2018 1:22 am
-
Contact:
#4
Post
by henvu50 » Fri Jan 21, 2022 6:30 pm
If you give music the noloop command, it causes rollback to stop the currently played music. It also causes the music to no longer be played after loading a save game.
Is there a way to stop music looping, but without the rollback stopping the music that should be playing, and ensuring when you load a save game, the song that was queued to play once, starts playing?
Users browsing this forum: Google [Bot], span4ev