Play Sound: Difference between revisions
(updates from Blockument) |
mNo edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 2: | Line 2: | ||
<translate> | <translate> | ||
<!--T:3--> | |||
<section begin="image"/>[[File:play_sound.png|alt=The Play Sound Block|thumb]]<section end="image"/> | <section begin="image"/>[[File:play_sound.png|alt=The Play Sound Block|thumb]]<section end="image"/> | ||
==Usage== | ==Usage== <!--T:4--> | ||
<!--T:2--> | <!--T:2--> | ||
<p id="tooltip">Plays the specified sound.</p> | <p id="tooltip">Plays the specified sound.</p> | ||
==Syntax== | ==Syntax== <!--T:5--> | ||
<!--T:6--> | |||
Inputs in this block: | Inputs in this block: | ||
#a sound block | #a sound block | ||
==Example== | ==Example== <!--T:7--> | ||
<!--T:8--> | |||
[[File:play_sound_example.png|alt=Play Sound example code|thumb]] | [[File:play_sound_example.png|alt=Play Sound example code|thumb]] | ||
<!--T:9--> | |||
The image above is from a predator-prey simulation where a dog agent hunts many smaller cat agents. On collision with a dog, the cat agents will play an audio recording of a cat meowing. | The image above is from a predator-prey simulation where a dog agent hunts many smaller cat agents. On collision with a dog, the cat agents will play an audio recording of a cat meowing. | ||
==Related Blocks== | ==Related Blocks== <!--T:10--> | ||
<!--T:11--> | |||
*[[Special:MyLanguage/Sound|Sound]] | *[[Special:MyLanguage/Sound|Sound]] | ||
Latest revision as of 18:34, 16 August 2023
Usage
Plays the specified sound.
Syntax
Inputs in this block:
- a sound block
Example
The image above is from a predator-prey simulation where a dog agent hunts many smaller cat agents. On collision with a dog, the cat agents will play an audio recording of a cat meowing.