Posted By
|
Message
|
askalarium
Registered 05/06/2009
Points 61
|
29th June, 2009 at 05:52:37 -
Is it at all possible to use Mp3 music for Game factory 1.
I found an extension but I am not sure how to activate it.
quaz
|
RedEnchilada formerly RedEchidna
Registered 01/08/2008
Points 301
|
29th June, 2009 at 15:18:22 -
The file has to be external for this method, but otherwise it works.
Put the MP3 in the same directory as your game, and remove all spaces from the filename. In your game, place an MCI object with the device set to "waveaudio".
In the event editor, when you want your music to play, tell the MCI object to send a command "open music.mp3", where music is the name of your file. Then send either "play music.mp3" or "play music.mp3 repeat", depending on whether it loops or not.
Now the most important part. Make sure that at the end of the frame, or whenever you don't need it anymore, you send "close all" through the MCI object. Also send it if the application ends. (Storyboard Object>End of Application) Otherwise, the music will keep playing like it was told, even if you close the application.
Hope that helps. I did a lot of extra talking, but the gist of it is easy to understand.
http://www.youtube.com/watch?v=WYrSD35vHo4
woooooooooooooooooaah maaaaaaaaaaaaaaaaaaaaan
|
askalarium
Registered 05/06/2009
Points 61
|
29th June, 2009 at 23:56:45 -
awesome! greatly appreciated
thanks
nash*
quaz
|
|
|