Play Sound/es: Difference between revisions

From StarLogo Nova Wiki
(Updating to match new version of source page)
(Updating to match new version of source page)
 
Line 27: Line 27:


<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">
[[File:play_sound_example.gif|alt=Play Sound example gif|thumb]]
[[File:play_sound_example.png|alt=Play Sound example code|thumb]]
[[File:play_sound_example.png|alt=Play Sound example code|thumb]]
</div>
</div>

Latest revision as of 18:35, 16 August 2023

Other languages:
The Play Sound Block

Plays the specified sound.

Syntax

Inputs in this block:

  1. a sound block

Example

Play Sound example code

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