Play Sound

From StarLogo Nova Wiki
Revision as of 18:34, 16 August 2023 by Admin (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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