Don't stop the sound effect till it ends

Hi brothers and sisters.
I have a button that runs a sequence and a sound effect.
When its running I press the button again and the sequence goes till last frame to start again... but the sound effect don't.
I need to know how to make the sound effect last the entire image sequence. or just play it till its finish.
Thnx !!

Comments

  • phamtasticphamtastic Member, PRO Posts: 354

    There should be a "run to completion" checkbox for the sound attribute.

  • PotatoesAppsPotatoesApps Member Posts: 53

    Thnx! I tried but it start again.
    I mean, the button is pressed one time and it plays the sound , but when I pressed for second time "over the first sound", the sound starts again.
    And what I need is to finish the sound playing with the animation.

  • phamtasticphamtastic Member, PRO Posts: 354

    Not sure if this is the best way to do it but you can put it inside a "For" timer.

    For (timer)
    { Play Sound }

  • PotatoesAppsPotatoesApps Member Posts: 53

    @phamtastic said:
    Not sure if this is the best way to do it but you can put it inside a "For" timer.

    For (timer)
    { Play Sound }

    Yeap! I can try it!
    Thnx for the help!!

  • PotatoesAppsPotatoesApps Member Posts: 53

    Ok, I get it.
    The sound have to uncheck run to completion, but the trick is to have the sound in the sequence actor because of the (self.image) contains (frame rate) and not in the button.
    Finished!!
    Wiii

Sign In or Register to comment.