Actions Not Stopping

Discussion in 'Technical Discussion' started by eyal, Jan 3, 2017.

  1. eyal

    eyal Serious Boxer

    Joined:
    Sep 25, 2015
    Messages:
    642
    Likes Received:
    121
    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
     
  2. eyal

    eyal Serious Boxer

    Joined:
    Sep 25, 2015
    Messages:
    642
    Likes Received:
    121
    anyone ?
     
  3. meremy

    meremy Avid Boxer

    Joined:
    Aug 26, 2016
    Messages:
    134
    Likes Received:
    66
    What is the duration on that action ?
     
  4. Jaky1

    Jaky1 Serious Boxer

    Joined:
    Aug 22, 2016
    Messages:
    523
    Likes Received:
    142
    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.
     
    eyal likes this.
  5. eyal

    eyal Serious Boxer

    Joined:
    Sep 25, 2015
    Messages:
    642
    Likes Received:
    121
    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.
     
  6. Jaky1

    Jaky1 Serious Boxer

    Joined:
    Aug 22, 2016
    Messages:
    523
    Likes Received:
    142
    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
     
    eyal likes this.
  7. Christoph

    Christoph Miniboss Boxer

    Joined:
    Oct 4, 2015
    Messages:
    2,807
    Likes Received:
    2,309
    Actions always play until they finish. No way to stop them.
     
    meremy likes this.
  8. eyal

    eyal Serious Boxer

    Joined:
    Sep 25, 2015
    Messages:
    642
    Likes Received:
    121
    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.
     
  9. eyal

    eyal Serious Boxer

    Joined:
    Sep 25, 2015
    Messages:
    642
    Likes Received:
    121
    so what can be done ?
     
  10. meremy

    meremy Avid Boxer

    Joined:
    Aug 26, 2016
    Messages:
    134
    Likes Received:
    66
    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
     
  11. Jaky1

    Jaky1 Serious Boxer

    Joined:
    Aug 22, 2016
    Messages:
    523
    Likes Received:
    142
    You should decrease your Action duration. Make it 1, so it will play only once. and is the voice over playing in Loops?
     
    eyal likes this.
  12. playsgames6666

    playsgames6666 Miniboss Boxer

    Joined:
    Nov 13, 2015
    Messages:
    1,168
    Likes Received:
    745
    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.
     
    Christoph and eyal like this.
  13. eyal

    eyal Serious Boxer

    Joined:
    Sep 25, 2015
    Messages:
    642
    Likes Received:
    121
    well then Im stuck. Can't make it shorter. it reads the text
     
  14. playsgames6666

    playsgames6666 Miniboss Boxer

    Joined:
    Nov 13, 2015
    Messages:
    1,168
    Likes Received:
    745
    so are you using a world or just UI's?
    If your using a world the
    Dam
     
    Christoph likes this.
  15. meremy

    meremy Avid Boxer

    Joined:
    Aug 26, 2016
    Messages:
    134
    Likes Received:
    66
    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
     
    eyal likes this.
  16. eyal

    eyal Serious Boxer

    Joined:
    Sep 25, 2015
    Messages:
    642
    Likes Received:
    121
    it's not about the action it's a
    f**k
     
  17. Jaky1

    Jaky1 Serious Boxer

    Joined:
    Aug 22, 2016
    Messages:
    523
    Likes Received:
    142
    So I guess there is no way, to stop an action in middle
     
  18. Christoph

    Christoph Miniboss Boxer

    Joined:
    Oct 4, 2015
    Messages:
    2,807
    Likes Received:
    2,309
    No.
     
    Jaky1 likes this.
  19. Andy

    Andy Miniboss Boxer

    Joined:
    Sep 24, 2015
    Messages:
    2,152
    Likes Received:
    1,546
    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.
     

Share This Page