Hi, I have an action in a scene which is sound I have a back button to main menu In the main menu I have bg soundtrack when going back - the sound from the action doesn't stop and plays together with the main soundtrack What to do ? I have tried to place an empty action under the back button with quite sound - didn't work - played them both
Why Don't you ad an object with opacity zero and add the sound there, make it so it covers the screen, so when the player collides with it, the sound starts, when the game is over, it will stop.
but it's not about game over it's about clicking the back button to the main menu The sound from the action continues The only way to stop it is to put a transparent sound button under the back button, BUT then there isn't sound in the main menu because once you push it under the back button, u r in mute now.
What do you back button to main menu? Did you put a back button in your Main Gameplay world? Or the Action in a UI, cuz that does not makes sense
I will explain. Imagine that you are in a world where everything is a decoration. This is like a presentation. Once you go through a opacity 0 action you are presented with a text on the screen and a voice over. That voice over can't be stopped because when I push back, there is no game over action. There is way for me to create a game over because there is no game.
Have an invisible character that has a small velocity for the duration of the text/animation. Once the character reaches a menu jump it takes you to the next UI. And don't use BACK button , use navigation button on default that takes you to the main menu
You should decrease your Action duration. Make it 1, so it will play only once. and is the voice over playing in Loops?
An action sound will play only for the length of the sound file. so there is no way around it. You need to make your sound file shorter, is the only thing you can do.
Make it unskippable ? But that sucks. I did not know that when i skip the cut scene the talking action will not stop. Just checked on a game and indeed that happened. Luckily mine was 2-3 seconds long and it didn't seem that bad
If you are doing a cut scene make the audio part of the UI (use the BGM). When it's dismissed it will stop if the next UI has audio. If not then just add a "silent" audio file to stop the previous one. I believe you could either use a Back button on the UI or a Menu Jump in the scene. There are at least several potential ways to accomplish this type of thing.