Music, Sound & Speech: Difference between revisions
m
no edit summary
*>SSH |
mNo edit summary |
||
(4 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
{{deprecated}} | |||
==Getting sound/music into your game== | ==Getting sound/music into your game== | ||
''How do I get sound/music into my game? Is there a menu or editor within AGS that I can use to add music/sound files into, or what?'' | ''How do I get sound/music into my game? Is there a menu or editor within AGS that I can use to add music/sound files into, or what?'' | ||
Line 14: | Line 16: | ||
Even though this is too general a question to ask (what happens exactly, what did you do, what does your script look like?), there are several steps you can take to double-check that everything is okay: | Even though this is too general a question to ask (what happens exactly, what did you do, what does your script look like?), there are several steps you can take to double-check that everything is okay: | ||
# Make sure you enable sound and midi options at File->Setup Game, if you dont, it wont work, that simple | |||
# Did you remember to name them "MusicXX.???" or "SoundXX.???" accordingly? XX would be the order number (like Music4.mid or Sound23.voc), and ??? would be the file format extension (MID, MP3, OGG, XM, etc. for music; WAV, VOC, MP3, OGG, etc. for sound/speech). | # Did you remember to name them "MusicXX.???" or "SoundXX.???" accordingly? XX would be the order number (like Music4.mid or Sound23.voc), and ??? would be the file format extension (MID, MP3, OGG, XM, etc. for music; WAV, VOC, MP3, OGG, etc. for sound/speech). | ||
# If you're using speech, did you remember to use the correct scripting format? Check the manual for more information on this. | # If you're using speech, did you remember to use the correct scripting format? Check the manual for more information on this. | ||
Line 52: | Line 55: | ||
Quite simply, nothing. Just don't tell AGS to stop playing the music until you reach the room in which you want the music to stop. Then, just play new music or stop it altogether, whichever you want. AGS plays music from room to room automatically until you tell it otherwise. | Quite simply, nothing. Just don't tell AGS to stop playing the music until you reach the room in which you want the music to stop. Then, just play new music or stop it altogether, whichever you want. AGS plays music from room to room automatically until you tell it otherwise. | ||
However, if you change tracks and then come back to the original music, it will start againfrom the beginning unless you use the [[ | However, if you change tracks and then come back to the original music, it will start againfrom the beginning unless you use the [[Continuous Music]] Module. | ||
==Fading out MIDI music upon entering a new room== | ==Fading out MIDI music upon entering a new room== | ||
Line 106: | Line 109: | ||
('''Note:''' if you're using AGS V2.7 and above, you may need to comment the lines marked with comment "'''Comment for V2.7+'''" and uncomment the lines marked with comment "'''Uncomment for V2.7+'''".) | ('''Note:''' if you're using AGS V2.7 and above, you may need to comment the lines marked with comment "'''Comment for V2.7+'''" and uncomment the lines marked with comment "'''Uncomment for V2.7+'''".) | ||
[[Category: | [[Category:Beginner Tutorials]] |