Well, I was searching through the forums for an answer to this, but since I was unable to find any clues, I made a new thread.
Is it possible to make your song loop from a certain point to another? For example, when you first hear the song, there's this legendary intro that is followed by an epic refrain. But, I only want the player to hear the intro once, letting the refrain loop for infinity.
So, simply put, my question is: it it possible choose from where your song loops?
Make the music loop from a certain point [SOLVED]
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.
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.
Make the music loop from a certain point [SOLVED]
Last edited by Meji on Sat May 02, 2009 10:21 am, edited 1 time in total.
- PyTom
- Ren'Py Creator
- Posts: 16096
- 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:
Re: Make the music loop from a certain point
Code: Select all
play music "intro.ogg"
queue music "refrain.ogg"
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom(When was the last time you backed up your game?)
Software > Drama • https://www.patreon.com/renpytom
Re: Make the music loop from a certain point
I don't mean to steal the thread but, can sounds be looped, or should I just play my repeating sounds as music instead?
For instance I have a clock ticking sound I want to play continuously until the end of a particular scene, but in the reference manual there is no mention of sound effects being repeatable... If I set the SFX up as a music, it can still overlap the other music without stopping it correct?
(I didn't feel it required an entire thread, sorry if this is too unrelated.)
For instance I have a clock ticking sound I want to play continuously until the end of a particular scene, but in the reference manual there is no mention of sound effects being repeatable... If I set the SFX up as a music, it can still overlap the other music without stopping it correct?
(I didn't feel it required an entire thread, sorry if this is too unrelated.)
Not the man I was before... He was an insufferable sort...
-
- Veteran
- Posts: 284
- Joined: Fri Dec 28, 2007 5:47 am
- Location: Where the Dragons rule!
- Contact:
Re: Make the music loop from a certain point
Yes, you just need to declare a new channel and play it on that channel, the music plays in another channel so it won't collide.Satoh wrote:If I set the SFX up as a music, it can still overlap the other music without stopping it correct?
Angels of paradise, angels of sacrifice
Please let me be under your wings...
Please let me be under your wings...
Re: Make the music loop from a certain point
Thank you so much. Problem solved. <3