User Tag List

Results 1 to 5 of 5

Thread: Newbie button and sound sample play help required.

  1. #1
    No Products Registered

    Join Date
    Sep 2011
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Newbie button and sound sample play help required.

    Hi,

    I am starting using MMF2 and I have a question.

    I created a button that each time is clicked it plays a WAV sample and it works.

    My question is how to stop any other sound playing and then play the sound associated to the button ?

    Basically I would like that each time the button is clicked it :
    1. Stop all sound playing
    2. Plays the sound I've associated to the button...

    Any help would be appreciated.

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Popcorn's Avatar
    Join Date
    Jun 2006
    Location
    Norway, Bergen
    Posts
    2,366
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(s)

    Re: Newbie button and sound sample play help required.

    There is an action called "Stop any sample playing". You should use this, and then play the sound you want to play.

    You have to do it in that order though, but it can still be in the same event.

    Example:

    * Button pressed
    - Samples: Stop any sample playing
    - Samples: Play sample "Hurray"

    That should work.

    If you do the actions the other way round, it will first attempt to play sample "Hurray", and then stop all samples, including the one started in the same event.

  3. #3
    No Products Registered

    Join Date
    Sep 2011
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Newbie button and sound sample play help required.

    Thanks it works !...

    Another and last question...

    I would like to play a sample when the button is pressed and stop the sound when the button is released, is there an there a way to do that ?

    Thanks

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Popcorn's Avatar
    Join Date
    Jun 2006
    Location
    Norway, Bergen
    Posts
    2,366
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(s)

    Re: Newbie button and sound sample play help required.

    The button object is rather limited and clumsy to work with. I think you would be better off using an active object or an Active system box as the button.

    Here's the events I would use with an Active object.

    * User click with left button on "MyActiveButton"
    - MyActiveButton: Set flag 0 on
    - Play sample "Hurray"

    * [Negate] Repeat while left mouse-key is pressed
    + MyActiveButton: Flag 0 is on

    - MyActiveButton: Set flag 0 off
    - Samples: Stop sample "Hurray"

  5. #5
    No Products Registered

    Join Date
    Sep 2011
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Newbie button and sound sample play help required.

    Many thanks !

Similar Threads

  1. Button Sample
    By PunchyBog in forum Android Export Module Version 2.0
    Replies: 3
    Last Post: 30th December 2013, 08:52 PM
  2. mouse over--> play sample sound!?
    By mega21 in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 30th November 2013, 05:43 PM
  3. Play sample every 00.10 second
    By Popcorn in forum Android Export Module Version 2.0
    Replies: 10
    Last Post: 7th May 2012, 09:18 PM
  4. play sample when another sample has finished?
    By edward in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 9th October 2006, 02:55 PM
  5. Order of "play sample" and "set sample volume".
    By Nifflas in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 26th September 2006, 07:07 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •