Skip to content

Audio System

karthikeya-v edited this page Oct 16, 2023 · 10 revisions

How to add sounds

The audio system works based on the sound class for which you need to assign a resource this project uses resource locator to assign the resources to the sounds.

ex: the same way as atlas files are located for the system to use sound files are located based on the provided address

steps to adding sounds

  • Procure the sounds to be added to the action or actions
  • assign the sound as a sound class using the resource locater for the provided address of the file.
  • use the different actions of play to play the sound as per the action you need to undertake
  • play
  • play(time)
  • play(time,pitch,pan)
  • add sound address to forestgamearea,towerfactorytest and its respected test for the animation controller.
Clone this wiki locally