Play Sound: Difference between revisions
(Marked this version for translation) |
(updates from Blockument) |
||
Line 1: | Line 1: | ||
<languages/> | <languages/> | ||
<translate> | <translate> | ||
<section begin="image"/>[[File:play_sound.png|alt=The Play Sound Block|thumb]]<section end="image"/> | |||
==Usage== | |||
<!--T:2--> | <!--T:2--> | ||
<p id="tooltip">Plays | <p id="tooltip">Plays the specified sound.</p> | ||
==Syntax== | |||
Inputs in this block: | |||
#a sound block | |||
==Example== | |||
[[File:play_sound_example.gif|alt=Play Sound example gif|thumb]] | |||
[[File:play_sound_example.png|alt=Play Sound example code|thumb]] | |||
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== | |||
*[[Special:MyLanguage/Sound|Sound]] | |||
<!--T:1--> | <!--T:1--> |
Revision as of 18:58, 14 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.