How to play sound ingame
How to play sound ingame
These are three different ways:
- Make an entity play a specific .anim, and have a .sound_anim xml with the same name as the anim. The .sound_anime xml contains specific points in the .anim timeline where sounds will be played, for example when feet hit the ground.
- Using a primitive with your land that specifically contains the sound for environmental sounds.
- A particle system can spawn sound sources as particles.