How do I add my own sound effects and music

Modified: 2008/05/08 16:17 by SuzanneH - Categorized as: Game Creator, How To Guides
Edit

Add 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-CustomSound

Details: Game->Add a file from your computer

Image

Add an audio file (Click the image to view full size)

Scene->Behaviors->Code->"Game.PlayAudio('MyFile.wma')"

Image

Add a code behavior to play back the sound (Click the image to view full size)

Image

Use the Game.PlayAudio API to play your file (Click the image to view full size)


Privacy. Terms of Use. Trademarks.
ScrewTurn Wiki version 2.0.22. Some of the icons created by FamFamFam.