I have sounds that need to stop when i change scenes for some reason they keep playing to the next scene. how do i make them stop from scene to scene..
Set attributes to control per scene. I put mine in as sounds then had an invisible actor on each scene that if a sound attribute was yes then play sound and when I hit pause it would stop the sound but the pause scene also had that controller actor start the sound back up so it wouldn't play 2 instances of the same sound out of sync. Can't remember all the details as I'm out now Edit Sometimes the sound carries over in GS creator but not on device
gyroscopeI am here.Member, Sous Chef, PROPosts: 6,598
Hi fiabanfriends; sounds will stop automatically (even if set to loop) when you go to another scene, as long as Run to Completion is unchecked in the Play Sound Behavior.
Music will continue playing when you go to another scene, set to loop or not. To stop it before you go the next scene, use a Stop Music behavior. For interest, I tend to interpolate the volume of music to fade to 0 over 3 or 4 seconds, then a stop music behavior before going to another scene. In the next scene, remember to put an actor outside of the playing area with an change attribute music volume set back to 1. Hope that helps.
Comments
youll have to start it up again at the start at the next scene
Edit
Sometimes the sound carries over in GS creator but not on device
Music will continue playing when you go to another scene, set to loop or not. To stop it before you go the next scene, use a Stop Music behavior. For interest, I tend to interpolate the volume of music to fade to 0 over 3 or 4 seconds, then a stop music behavior before going to another scene. In the next scene, remember to put an actor outside of the playing area with an change attribute music volume set back to 1. Hope that helps.
:-)
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps