This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
play_sound [2017/10/10 07:49] – justin | play_sound [2021/04/21 18:39] – justin | ||
---|---|---|---|
Line 2: | Line 2: | ||
---- | ---- | ||
- | Plays the specified sound effect once. | + | Plays the specified |
+ | ====Signature: | ||
<code python> | <code python> | ||
play_sound(sound_name) | play_sound(sound_name) | ||
Line 12: | Line 13: | ||
<WRAP center round info 100%> | <WRAP center round info 100%> | ||
- | This function plays the sound at the game's current sound effect volume. For positional/ | + | The built-in [[Sound FX Generator]], accessed from the main toolbar along the top of the application, |
</ | </ | ||
====Example: | ====Example: | ||
- | < | + | < |
- | play_sound(" | + | play_sound(" |
</ | </ | ||
- | // | + | // |
<WRAP center round tip 100%> | <WRAP center round tip 100%> | ||
- | Use the **Play Sound** function to trigger a sound effect when the player opens a door or a treasure chest, or an event occurs that you'd like the player to hear regardless of their location. | + | Use the **Play Sound** function to trigger a [[sound|sound effect]] when the player opens a door or a treasure chest, or an event occurs that you'd like the player to hear regardless of their location. |
</ | </ | ||
Line 30: | Line 31: | ||
<WRAP half column> | <WRAP half column> | ||
====Editor Node:==== | ====Editor Node:==== | ||
- | {{:wiki: | + | {{: |
</ | </ | ||