EditAdd sound effects and music
Basic Idea: Create a WMA or MP3 file of your audio (remember, you may only upload sound effects and music to which you own the copyright), and upload the file to your game. See
How do I use uploaded files in my game? for more information on uploading files. Finally, you need to add a custom code behavior which calls "
Game.PlayAudio('MyFile.wma')".
Sample Game:
http://www.popfly.com/users/team/HowDoI-CustomSoundDetails:
Game->Add a file from your computer
 Add an audio file (Click the image to view full size) |
Scene->Behaviors->Code->"Game.PlayAudio('MyFile.wma')"
 Add a code behavior to play back the sound (Click the image to view full size) |
 Use the Game.PlayAudio API to play your file (Click the image to view full size) |