Play Sound/en: Difference between revisions

From StarLogo Nova Wiki
(Updating to match new version of source page)
(Updating to match new version of source page)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<languages/>
<languages/>


<p id="tooltip">Plays a specified sound.</p>
<section begin="image"/>[[File:play_sound.png|alt=The Play Sound Block|thumb]]<section end="image"/>
 
==Usage==
 
<p id="tooltip">Plays the specified sound.</p>
 
==Syntax==
 
Inputs in this block:
#a sound block
 
==Example==
 
[[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]]


[[Category:Sound]]
[[Category:Sound]]
[[Category:Code Block]]
[[Category:Code Block]]

Latest revision as of 18:37, 16 August 2023

Other languages:
The Play Sound Block

Usage

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