User Tag List

Results 1 to 4 of 4

Thread: Random audio samples?

  1. #1
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)
    gagegage926's Avatar
    Join Date
    Mar 2014
    Posts
    71
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Unhappy Random audio samples?

    Okay. This is probably a super simple fix but I am having one heck of a time doing it.

    I have several songs for my app. I would like it to select at random one of these songs and play it. I would like to do this so the same song doesn't play 24/7.

    I know I could have it change at the end of each song but I have the music end at the end of the frame, and it is uncommon to last 2min on my game. So I a way to random select a song at start and then randomly select a song to play at the end of the next one.

    any suggestions or ideas? Or just how to do it lol.

    Thanks for any help!

    (I dont have the developer version of clickteam Fusion 2.5 if that matters also.)

  2. #2
    Clicker Fusion 2.5 DeveloperSWF Export Module
    N64Mario's Avatar
    Join Date
    Nov 2008
    Location
    USA
    Posts
    1,306
    Mentioned
    15 Post(s)
    Tagged
    0 Thread(s)
    Start of frame - Set global value A to random(#) - Change # to whatever you want

    global value A = 0 + one action when event loops - Play song 1
    global value A = 1 + one action when event loops - play song 2

  3. #3
    Clicker Fusion 2.5Fusion 2.5+ DLC
    casleziro's Avatar
    Join Date
    Mar 2013
    Location
    United States
    Posts
    643
    Mentioned
    11 Post(s)
    Tagged
    0 Thread(s)
    Start of frame - Set global value A to random(#) - Change # to whatever you want

    global value A = 0 + one action when event loops - Play song 1
    global value A = 1 + one action when event loops - play song 2
    replace 'one action when event loops' with 'when (whatever song) is NOT playing' and you're good.

  4. #4
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)
    gagegage926's Avatar
    Join Date
    Mar 2014
    Posts
    71
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Okay sweet thank you. I am currently away from home, so I will try this when I get back in a day or two. Thank you very much.

Similar Threads

  1. Random Active Spawn in Random Location in Frame
    By Top_of_the_Temple in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 20th October 2016, 03:33 AM
  2. Random object spawning random y set x
    By Armiferamortalis in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 23rd December 2013, 11:47 AM
  3. BUG: Random is not random in Flash mode
    By oldkliker in forum SWF/Flash Export Module Version 2.0
    Replies: 1
    Last Post: 11th October 2011, 08:56 PM
  4. Random and MT Random strange behaviour
    By crusher in forum iOS Export Module Version 2.0
    Replies: 0
    Last Post: 8th October 2011, 01:32 PM
  5. Random Speed + Ypos at random times
    By Keehan in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 14th May 2011, 05:25 PM

Tags for this Thread

Posting Permissions

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