Changes

310 bytes added ,  19:39, 20 October 2021
Added new adding/playing custom sounds section
Line 234: Line 234:  
Like <tt>Game1.playSoundPitched</tt>, you can repitch sounds by providing a pitch from 0 to 2400, with intervals of 100 between every half step. However, with the <tt>GameLocation.playSoundPitched</tt> function, you must specify a map location to play the sound in, which any player in that location will hear.
 
Like <tt>Game1.playSoundPitched</tt>, you can repitch sounds by providing a pitch from 0 to 2400, with intervals of 100 between every half step. However, with the <tt>GameLocation.playSoundPitched</tt> function, you must specify a map location to play the sound in, which any player in that location will hear.
 
</dd>
 
</dd>
 +
 +
===Adding and playing custom sounds===
 +
 +
To add your own sounds to the soundbank, you can define a new <tt>CueDefinition</tt> and add a name:
 +
 +
<syntaxhighlight lang="c#">
 +
// Create a new Cue Definition.
 +
CueDefinition cue_definition = new CueDefinition();
 +
cue_definition.name = "Test";
 +
</syntaxhighlight>
 +
 +
TODO
    
==Track list==
 
==Track list==
41

edits