Vǫrðr Forge Steam page

Art, Audio and Interface

Sound and Music

Sound files live in the project's assets/audio/ folder: WAV, MP3, FLAC or OGG. A bare file name anywhere below means a file in that folder.

Music

Each map can name its own track in Map Settings, the Map page under PROJECT in Edit > Project Settings (Music, Pick... or Clear), or in its document's music row:

comp music music -1 -
field file forest_theme.wav
field volume 0.5

The music cross-fades over one second when the player arrives. A map without a music line keeps whatever was playing. A script changes it with music <file> [volume]. A map that names a music, soundscape or storm file that is missing says so once on the status line when it loads.

Music volume
The row under Music, a percent. At 100 a track plays at its file's own level.
Play, Stop
Play on this row plays the map's music as a preview, at the level the game plays it. Stop and Clear stop it, and the sound file can then be deleted or replaced while the map is open.

Sound in the editor

The editor is silent while you work: the open map's music, its soundscape, its weather, its water and the loops on its art and props do not sound. They sound in a test, and a test's Stop ends everything the test started.

Hear the map
A tick in the viewport's View menu. On, the open map sounds in the editor as it does in play. Off by default, and kept with your editor preferences.
A preview
Every Play button in the editor (a map's Music row, the asset manager's map page, a sound set, the DAW) plays a preview. A second preview, a test, the chip's square or Esc stops it. Closing the Settings window stops a preview begun on its Map page.

A chip on the viewport's title bar, beside From Map, says what is sounding:

Editor silent
Nothing.
Preview: <name>
A preview, with a square that stops it.
Hearing: <map>
Hear the map is on.
Game sound
A test is running.
Muted
Click the chip to mute everything, and again to unmute.

Battle music

A battle place can have music of its own: PROJECT > Battle Places, the Music row with its own Music volume. It plays when the player walks into the zone the battle place belongs to, and the map's music comes back afterwards.

The project can also have one battle song that follows the enemies, in any zone or none: BATTLE MUSIC at the head of PROJECT > Battle Places, with Battle music set to Off, Zone only or Nearby enemies. Off by default. See Battle Music.

Music that follows the danger

A layered track is up to six stems that start together and loop in step. Each stem has a curve, and its volume follows the game's tension, from 0 (calm) to 1 (the worst of it). Calm strings, drums that come in as things get close, brass only at the peak. Tracks are rows of assets/data/musiclayers.vfa:

comp track crypt -1 -
field stem crypt_pad.wav always
field stem crypt_drums.wav rise
field stem crypt_brass.wav peak
field follow 1
field fade 2
always
Always heard.
rise
Louder as tension rises.
early
In by half tension.
late
Only in the upper half.
peak
Only at the peak.
fall
Quieter as tension rises.
calm
Only while calm.

follow is how many seconds a stem takes to catch up with the tension, and fade how long the track takes to fade in. Start one with audio track crypt, stop it with audio track stop, and set the tension with audio tension 0.8 2 (the level, then the seconds to reach it). The Tension director in Project Settings > Project can drive it for you: tick Drives the music. A layered track plays on top of the map's music, so give that map no music of its own.

Soundscape and weather

soundscape
A map's own loop (birds, wind, a cave's drip), set with its volume in Map Settings.
weather sound
A sound and volume in the map's weather row: a loop that plays whenever the weather where the player stands is not clear.

Sounds in the world

Random sounds in Map Settings put a sound on the map: Add at view... picks a file and sets it at the centre of the view, and it plays now and then (every 5 to 15 seconds at first) while the player is within reach. Each one gets its own rows:

Directional
The sound comes from where it stands: louder on the side it is on, and fading with distance.
Falloff
How far it carries: natural or linear, small, medium or large.
Height
Where it sits: on the ground, knee, waist, head, ceiling or high.
Muffled by walls
With a wall between it and the player, it sounds dull and quieter, as from the next room.

Scripts place sounds too. audio play <name> <file> at <x> <y> plays from a point, and on <who> follows a prop, a character or the player as it moves; add loop, vol, fade and muffle as you need them. audio attach <prop> <file> gives a prop a loop that is saved with the map (auto starts it with play). Rûn has the same as Audio.PlayAt, Audio.PlayOn and Audio.Attach.

Reverb

A reverb zone makes everything inside it ring like a room, a hall, a cave, a sewer or a forest, blending in over its edge. Zones are made from the Rûn Console or a script, and saved with the map: audio reverb add cave sets one where the camera is, audio reverb list shows them, and audio reverb set <zone> <field> <value> changes its size, blend, wetness or preset.

Sounds on art

assets/data/sounds.vfa gives a piece of art a looping sound that gets louder as the player comes near. Every placed copy of that picture plays it.

comp sound 1 -1 -
field image Well1_1.png
field wav well_bubble.wav
field radius 400
field volume 0.8

Sound sets

assets/data/soundsets.vfa gives characters and enemies a set of sounds for their moments. Each moment can list up to twelve files; one is picked at random and never the same twice in a row.

comp set goblin -1 -
field notice gob_alert1.wav gob_alert2.wav
field attack gob_swing.wav
field hurt gob_hurt1.wav gob_hurt2.wav
field death gob_death.wav
field step gob_step.wav

The moments are notice, attack, hurt, death, step, idle, select and jump (also written aggro, swing, hit_taken, die, footstep, flavor, preview and hop). A character document picks its set on its Audio component.

Jump
Plays when the player's character jumps, from her own set.
Step
Footsteps. The player's play only while her feet are on the ground: none while she jumps or falls.

Edit Sound Sets on the Audio component opens the Sound Sets page: the set's name, then each moment (Notice, Attack, Hurt, Death, Step, Idle, Select, Jump) with its sounds laid four to a line. Drop a sound file on a slot, or click an empty slot to pick one; up to 12 a moment.

One-off sounds

sound <wav> in any script plays a sound once. Tools > Vǫrðr DAW makes sound effects from scratch, and writes whole songs on its Song tab.

Play a sound only if it is not already playing

The short way, in an event: put once at the end.

sound door_creak.wav once

That plays door_creak.wav, unless door_creak.wav is still playing; then it does nothing. A door opened ten times in a second makes one creak.

The long way, when you want to decide yourself: playing(door_creak.wav), also written sound_playing(door_creak.wav), is 1 while that file is still playing and 0 when it is not. In an event:

if (!playing(door_creak.wav)) {
    sound door_creak.wav
}

In a Run program the name goes in quotes: if (!playing("door_creak.wav")) { play_sound("door_creak.wav") }. The name may be written with or without .wav. Only sounds played by sound, soundat, play_sound or a script count; a song on the Music bus does not.

Sound tags

A tag is a name you give a sound when you play it, so several different files can be asked about as one, as in Construct. Five enemies with five different death cries can share the tag deaths, and one check stops them piling up.

In an event: sound <wav> tag <name> plays the sound with that tag, and soundtag_playing(<name>) is 1 while any sound played with that tag is still playing.

if (!soundtag_playing(deaths)) {
    sound goblin_die.wav tag deaths
}

In a Run program: play_sound("goblin_die.wav", "deaths") plays it with the tag, and soundtag_playing("deaths") asks.

if (!soundtag_playing("deaths")) { play_sound("goblin_die.wav", "deaths") }

once and tag go together: sound goblin_die.wav tag deaths once.

The player's own volume settings (master, music, sound effects, voices, ambience and interface sounds) are on the game's Options screen. See The Player Settings Menu.