Skip to main content

Sounds

Sounds are a great way to add a little extra immersion to your game.

Sound effects

The Hear or Sing functions can be used to play a sound effect in game.

  • Hear will always play a sound to completion
  • Sing will only continue to play a sound as long as the current this entity continues to exist or until it is deleted.

Sounds are played using positional audio, which means a player will be able to hear if a sound is coming from their left or right, and how far away it is.

  • The Sing and Hear functions take a body parameter that determines the body where the sound is coming from.
  • The Ears function determines the body that should act as the listener is in the game world. In most cases, you should set this to the character that the player is controlling.

Sounds can be provided in multiple formats, including mp3 and Easel's easy esfx format.

Music

The Music function can be used to play music in game. Music can be provided in multiple formats, including mp3.