User Tag List

Results 1 to 3 of 3

Thread: Fading a sample out

  1. #1
    Clicker Multimedia Fusion 2

    Join Date
    Jun 2006
    Posts
    117
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Fading a sample out

    Is there a way to make a specific sample of music that is looping fade out, say when the player loses a life, i.e. his energy = 0? I want it to fade out over a 2 second time period. I tried resetting the timer to 0 upon losing a life, and then reducing the sample's volume gradually from 100 down to 0 over that interval every 20/100 of a second. But it doesn't work, the volume stays the same.

  2. #2
    No Products Registered

    Join Date
    Jun 2007
    Location
    Scotland
    Posts
    49
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Fading a sample out

    It works for me by setting the volume of a sample Always to a variable. Then just add and subtract the variable in Timer intervals as you are doing. If you link different samples to different variables, you can have samples fade in while others fade out, etc.

  3. #3
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    mobichan's Avatar
    Join Date
    Oct 2007
    Location
    Buffalo, NY
    Posts
    3,310
    Mentioned
    28 Post(s)
    Tagged
    0 Thread(s)

    Re: Fading a sample out

    You can also try the Onu object, which has actions for fading samples over time.

Similar Threads

  1. BUG: Resume sample action restarts the sample
    By mobichan in forum SWF/Flash Export Module Version 2.0
    Replies: 10
    Last Post: 4th September 2011, 02:13 PM
  2. Fading help
    By Dynamite in forum File Archive
    Replies: 1
    Last Post: 26th March 2008, 10:46 AM
  3. fading in and out
    By Jason in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 27th March 2007, 10:32 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
  •