Sound not stopping

A place to discuss things that aren't specific to any one creator or game.
Forum rules
Ren'Py specific questions should be posted in the Ren'Py Questions and Annoucements forum, not here.
Post Reply
Message
Author
MrKnobb
Newbie
Posts: 7
Joined: Sun Mar 18, 2018 10:21 am
Contact:

Sound not stopping

#1 Post by MrKnobb »

Hi All

I have the following code in RenPy for the VN i am creating. It plays the image series as i call it and the sound plays along which is great. Only problem is the sound carries on until the player clicks again.
I do not want the sound to loop, it must only play once you have activated the image series action.
Any idea why it would loop and not stop?

I have to add, i have taken away the fadeout part but then there is no sound.

Code: Select all

scene fyvickyjen1
j "VICTORIA..."
#SHOW IMAGE SERIES
show bg fyenteroffice
play music "images/ch3/whoosh.wav"
#no delay
j "Oh not what happened?"
stop music fadeout 0.3
scene fyvickyjen2
vp "It's not... I... ah Jensen..."

User avatar
parttimestorier
Veteran
Posts: 429
Joined: Thu Feb 09, 2017 10:29 pm
Completed: No Other Medicine, Well Met By Moonlight, RE:BURN, The Light at the End of the Ocean, Take A Hike!, Wizard School Woes
Projects: Seeds of Dreams
itch: janetitor
Location: Canada
Contact:

Re: Sound not stopping

#2 Post by parttimestorier »

The easiest way to do it is to replace "play music" with "play sound". Calling it music means it loops by default, and calling it sound means it doesn't by default. Also, for future reference, I think this should be in the Renpy Questions & Announcements section.
ImageImageImage

Post Reply

Who is online

Users browsing this forum: No registered users