User Tag List

Results 1 to 8 of 8

Thread: How to use external music files in a game?

  1. #1
    Clicker Fusion 2.5

    Join Date
    Dec 2009
    Posts
    110
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to use external music files in a game?

    I have a fairly large game, and im having a spot of trouble with it at this size. As such I was thinking of instead of building the game with all music and sound effect files included, I wanted to instead have it as a separate file to alleviate the headache of runnijg it a bit. Problem is, I know its possible, its simply just...I have absolutely no clue where to even begin doing that. Can anyone give me some guidance?

  2. #2
    Clickteam Clickteam
    Danny's Avatar
    Join Date
    Aug 2007
    Location
    United Kingdom
    Posts
    3,016
    Mentioned
    21 Post(s)
    Tagged
    2 Thread(s)
    If I'm getting your post right then, Right Click > Play Sample from File (as opposed to Play Sample). You can then specify the external filename of the sample.
    Want to learn Clickteam Fusion 2.5?




  3. #3
    Clicker Fusion 2.5

    Join Date
    Dec 2009
    Posts
    110
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    But how does that work whenever I build my game?

  4. #4
    Clickteam Clickteam
    Danny's Avatar
    Join Date
    Aug 2007
    Location
    United Kingdom
    Posts
    3,016
    Mentioned
    21 Post(s)
    Tagged
    2 Thread(s)
    You could put the samples in a folder called 'sounds' then you would use the Play Sample from File (expression).

    Ie:
    Play Sample From File(Expression: AppPath$+"sounds\hit.wav")

    When you build your game and run it, it will look for the sound in the sound folder in the same directory as the game itself.
    Want to learn Clickteam Fusion 2.5?




  5. #5
    Clicker Fusion 2.5

    Join Date
    Dec 2009
    Posts
    110
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What do you mean?

    If I build the game, Id have to include this file with it, but depending on how a user would install it, said file can be anywhere on their computer. How am I to have it be in a consistent directory?

  6. #6
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleInstall Creator Pro

    Join Date
    Dec 2010
    Location
    United Kingdom
    Posts
    961
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    When you build the application, you can use the "Build" --> "Install Program" option which will build the application and give you the opportunity to pack any external files with the application. This produces an install program.

    When the user installs your game using this package, for example, if it was installed to "C:\Program Files\MyGame\", the game and its sound files would be located here, in the same directory.

    The expression AppPath$ tells MMF the directory where the game is located in, so it does not matter where the user installs the game, as long as MMF is able to look in the same directory for a folder called "Sounds".

    Hope that clears up a few questions.

  7. #7
    Clicker Fusion 2.5

    Join Date
    Dec 2009
    Posts
    110
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I believe Im starting t get it, but could you give me an example?

  8. #8
    Clicker Fusion 2.5

    Join Date
    Dec 2009
    Posts
    110
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    For instance, putting AppPath$/Sounds/XXXX the Xs being the music file, would that be correct?

Similar Threads

  1. My game was rejected because game music plays over phone music
    By leuvsion in forum XNA Export Module Version 2.0
    Replies: 18
    Last Post: 1st August 2012, 06:49 PM
  2. External files, music using .flv? and my requests
    By SoftWarewolf in forum SWF/Flash Export Module Version 2.0
    Replies: 1
    Last Post: 23rd April 2010, 11:21 AM
  3. best way to set up external files (ini)
    By Ohyea in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 15th August 2008, 04:38 PM
  4. Bug? Playing external music file
    By Dines in forum File Archive
    Replies: 11
    Last Post: 15th July 2008, 01:35 PM
  5. External ogg files
    By willy in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 2nd May 2007, 03:56 PM

Posting Permissions

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