User Tag List

Results 1 to 8 of 8

Thread: New to MMF- How to make a sound play before moving to next frame

  1. #1
    Clicker Multimedia Fusion 2 Developer
    bsiznks's Avatar
    Join Date
    Mar 2012
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    New to MMF- How to make a sound play before moving to next frame

    I have made a game for one of my students with special needs where he chooses a picture. The idea is that when he chooses the correct one, it plays a message and then goes to the next screen. My problem is that I can't get it to play the sound, instead it goes immediately to the next frame. I have tried various conditions, to no avail. Help, please!!!

  2. #2
    Forum Moderator

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,773
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)
    Student selects the right picture
    --->Set Picture flag 0 to on

    Flag 0 of picture is on
    +Only one action when event loops
    ---->play sound

    Flag 0 of picture is on
    +sound is not playing
    --->go to next frame


    Marv
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

  3. #3
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)

    Join Date
    May 2011
    Posts
    111
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    or even simpler, alternative method is on start of frame (i.e. the frame after) "play sample x"
    (the only possible issue with this is that the sound may repeat if the level needs to be reset in which case you could use a global string which is set to 1 on frame advance (use this as an extra condition) and have the string reset to 0 on level reset to prevent the sound from replaying. This is how i would do it anyway, but Marv's method works too, I'm pretty sure.

  4. #4
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jan 2010
    Posts
    164
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You could just go into the application settings and check the box that says "play sounds over frames". It's in the runtime tab (third tab from the left).


    To delay before entering the next frame, you could just make an active object outside the frame area and set value A to 100, and B to 1 when you click the right picture (and also play the sound).
    Then, make a condition that says "value A of active is greater than 0" -> subtract 1 from value A.
    Also, you need a condition that says: when A is lower or equal to 0 and B is 1 = go to the next frame.

    In other words, when you click a picture, a countdown starts, and when it reaches 0, the next frame will appear.

    If you only want the picture to be clicked once, you can add the "run this event once" condition together with the "click on picture" event

    An even easier way to delay before the next frame, is to just set value A of some object to 1 when you click the picture, and play the sound. Then, you tell mmf that if no sound is playing + value A is 1 + every 5 seconds -> go to next frame.

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    KLiK-iT's Avatar
    Join Date
    Sep 2011
    Location
    New Jersey
    Posts
    2,852
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    The best way and to be totally accurate. Insert an active object and name it "Frame Control" When the student clicks on the correct picture,....play the sound and set the "Frame Controls" alterable value to 1.......

    Hold on,..here's an example. It's easier than explaining in text here..LOL. This will work just fine and it's accurate.

    http://www.mediafire.com/?6hblamgq2gm1n5p

  6. #6
    Clicker Multimedia Fusion 2 Developer
    bsiznks's Avatar
    Join Date
    Mar 2012
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Smile Many thanks!

    Thanks everyone for your help, when I get home from work today I will try them. Also, thanks for links to tutorials! I combed through the ones on this site, but hard to figure out & find which ones move to new frames each time a selection is made.

  7. #7
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    KLiK-iT's Avatar
    Join Date
    Sep 2011
    Location
    New Jersey
    Posts
    2,852
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    All are good examples! In my example there are only 4 events.

  8. #8
    Clicker Multimedia Fusion 2 Developer
    bsiznks's Avatar
    Join Date
    Mar 2012
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Cool It works!

    Thanks to all suggestions and especially for the examples- very, very helpful. I am completing it now so hopefully I can try it complete with sound tomorrow, yea!!

Similar Threads

  1. How do you play default ios sound, eg the notification sound.
    By assentec in forum iOS Export Module Version 2.0
    Replies: 2
    Last Post: 14th July 2013, 06:33 AM
  2. How do I play a sound then go to another frame?
    By Keith in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 8th August 2011, 09:02 PM
  3. How to play a sound once while over object
    By Selveria in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 8th May 2010, 06:49 PM
  4. Play sound IMMEDIATELY after other sound finishes
    By LazyCoder in forum Multimedia Fusion 2 - Technical Support
    Replies: 10
    Last Post: 1st September 2007, 12:18 AM
  5. Sound samples don't play in exe
    By BenMo in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 23rd January 2007, 02:18 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
  •