Random audio samples?

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • 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.)

  • Quote

    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.

    Best person at writing incomprehensible posts. Edits are a regularity.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!