Sound Effects It is easy to add sound effects to your game. You just have to find a "wav" file and import it into your game. "File", "Import as Control", "Audio File" If you open up the "Application Browser" (under "Tools" on your Edit Bar), You should see your file under "Audio Clips" The following code can then be inserted almost anywhere that you need a sound effect (for instance in the intersect command where your player intersects with the prize): if intersect (button "box", image "prize", "pixels") then play "applause.wav" end if Background music Background music can be added in much the same way. You import a 'wav' file and then insert the command to play it. The only difference is that if you want the background music to play continuously, you need to add "looping" to it. To have the music start playing immediately as you open the card - on the card script, add the following: on openCard play "forest.wav" end openCard on openCard play "forest.wav" looping end openCard That is it. Easy. NEXT - Misc. Topics |
Home >