User Tools

Site Tools


play_sound

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
play_sound [2018/03/16 09:46]
justin
play_sound [2020/07/23 11:56] (current)
justin
Line 2: Line 2:
 ---- ----
  
-Plays the specified sound effect once.+Plays the specified ​[[sound|sound effect]] once.
  
 ====Signature:​==== ====Signature:​====
Line 13: 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/​spatial sounds, you can attach a sound effect to a model'​s animation ​in order for the sound level to adjust based on the distance from the player. The [[Sound FX Generator]] can be used to generate some basic 8-bit style sound effects.+The built-in [[Sound FX Generator]], accessed from the main toolbar along the top of the application, ​can be used to generate some basic 8-bit style [[sound|sound effects]].
 </​WRAP>​ </​WRAP>​
  
 ====Example:​==== ====Example:​====
-<​code ​python>+<​code ​bauxite>
 play_sound("​door_open"​) play_sound("​door_open"​)
 </​code>​ </​code>​
-//​Results://​ Plays the sound effect named "​door_open"​ one time.+//​Results://​ Plays the [[sound|sound effect]] named "​door_open"​ one time.
  
 <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.
 </​WRAP>​ </​WRAP>​
  
Line 31: Line 31:
 <WRAP half column> <WRAP half column>
 ====Editor Node:==== ====Editor Node:====
-{{:wiki:​play_sound_node.png?​nolink|}}+{{:​play_sound_node.png?​nolink|}}
 </​WRAP>​ </​WRAP>​
  
play_sound.1521218805.txt.gz ยท Last modified: 2018/03/16 09:46 by justin