Difference between revisions of "Adding a sound to your age"

(Creating an emitter)
Line 17: Line 17:
  
 
Create alcscript
 
Create alcscript
 +
'''<Name of emitter object>''':
 +
    type: soundemit
 +
    sound:
 +
        flags: loop | start | 3d
 +
        file: psnlMusicPlayer '''(name of the wav file you imported)'''
 +
        volume: 1
 +
        type: '''<SoundFX, Ambience, BackgroundMusic, GUISound, NPCVoices>'''
 +
        channel: '''<right, left>'''
 +
        maxfdist: 250 '''(farthest distance from the emitter the sound can be heard. Only affects 3d sounds)'''
 +
        minfdist: 50 '''(inside this distance, the sound is full volume. Only affects 3d sounds)'''
  
 
== Add your sound file to blender ==
 
== Add your sound file to blender ==

Revision as of 20:19, 20 January 2008

With the newest plugin version, we now have the ability to use our own sounds in our ages. Our ability to manipulate those sounds is at this point rather limited. This is what we can do as of now:

  • create an ambient loop that will play at equal volume everywhere in an age
  • create a looping sound that eminates from a particular point and can be heard up to a defined distance from the emitter

Things we will be able to do in the future, but cannot yet:

  • confine sounds to a region using softvolumes
  • start and stop sounds using logic triggers. (clickables, detector regions, python)


Creating an emitter

Add an empty

place it

Create alcscript

<Name of emitter object>:
    type: soundemit
    sound:
        flags: loop | start | 3d
        file: psnlMusicPlayer (name of the wav file you imported)
        volume: 1
        type: <SoundFX, Ambience, BackgroundMusic, GUISound, NPCVoices>
        channel: <right, left>
        maxfdist: 250 (farthest distance from the emitter the sound can be heard. Only affects 3d sounds)
        minfdist: 50 (inside this distance, the sound is full volume. Only affects 3d sounds)

Add your sound file to blender

Export