Looping music from a different point in the song? Possible?

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
ViRiX Dreamcore
Regular
Posts: 49
Joined: Sun Jan 20, 2013 10:58 pm
Projects: Lost Girl
Contact:

Looping music from a different point in the song? Possible?

#1 Post by ViRiX Dreamcore » Mon May 13, 2013 12:51 am

Hey guys. I'm working on a song for my VN and I'm wondering if it's possible to have the song not loop from the beginnig. (Like having an intro part, then the actual song) I was looking through the docs and it seems like I can do it with a music queue, but it appears that it loops through every file in the queue. I'd like it to play the intro file once and then just loop the other one. Is that possible?

Thanks.
_______________________
Project Lost Girl
Image
---------------------
Music and sound effects
SoundCloud | YouTube | Facebook
Free SFX and music
OpenGameArt
Let me know if you'd like some help.

User avatar
Donmai
Eileen-Class Veteran
Posts: 1919
Joined: Sun Jun 10, 2012 1:45 am
Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question, To The Girl With Sunflowers
Projects: Slumberland
Location: Brazil
Contact:

Re: Looping music from a different point in the song? Possib

#2 Post by Donmai » Mon May 13, 2013 7:27 am

Use noloop.

Code: Select all

play "intro.ogg" noloop
queue "song.ogg"
Image
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)

User avatar
ViRiX Dreamcore
Regular
Posts: 49
Joined: Sun Jan 20, 2013 10:58 pm
Projects: Lost Girl
Contact:

Re: Looping music from a different point in the song? Possib

#3 Post by ViRiX Dreamcore » Mon May 13, 2013 8:14 am

Ah nice! I knew it couldn't be too complex. Thanks.
_______________________
Project Lost Girl
Image
---------------------
Music and sound effects
SoundCloud | YouTube | Facebook
Free SFX and music
OpenGameArt
Let me know if you'd like some help.

User avatar
Donmai
Eileen-Class Veteran
Posts: 1919
Joined: Sun Jun 10, 2012 1:45 am
Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question, To The Girl With Sunflowers
Projects: Slumberland
Location: Brazil
Contact:

Re: Looping music from a different point in the song? Possib

#4 Post by Donmai » Mon May 13, 2013 2:48 pm

You're welcome! Good luck with your project!
Image
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot]