Stop Sound

Description

'stop sound [sound_id] [with [properties]]'

The stop sound action will let you stop either all sounds currently playing or only one in specific. To learn more about sound, read the Play Sound documentation.

Action ID: Sound::Stop

Reversible: Yes

Requires User Interaction: No

Parameters

Properties

The following is a comprehensive list of the properties available for you to modify certain behaviors of the stop sound action.

Examples

Stop a specific Sound

The following will stop a specific sound, identified by it's name.

Monogatari.script ({
    'Start': [
        'play sound night loop',
        'play sound fireCracks loop',
        'Two sounds are currently playing',
        'stop sound fireCracks',
        'I guess some one put out the fire, only the night sounds are heard now',
        'end'
    ]
});

Stop all Sounds

The following will stop all sounds currently playing.

Monogatari.script ({
    'Start': [
        'play sound night loop',
        'play sound fireCracks loop',
        'Two sounds are currently playing',
        'stop sound',
        'It really is a silent night, nothing is heard anymore',
        'end'
    ]
});

Fade Out Effect

The following will stop the sound, and will use a fade out effect to do so. You can also use a fade out effect when stopping all sounds.

Monogatari.script ({
    'Start': [
        'play sound night loop',
        'play sound fireCracks loop',
        'Two sounds are currently playing',
        'stop sound fireCracks with fade 12',
        'I guess some one put out the fire, only the night sounds are heard now',
        'end'
    ]
});

Last updated