Game Development Community

Water impact sound

by Roi Hojgaard · in Torque Game Engine · 08/03/2007 (8:28 am) · 2 replies

Tried searching the forums for this, but found nothing.

I am trying to enable the sounds for entering and exiting water. I have uncommented the

impactWaterEasy = ImpactLightWaterEasySound;
impactWaterMedium = ImpactLightWaterMediumSound;
impactWaterHard = ImpactLightWaterHardSound;

in player.cs, and provided wav's for the sounds (and updated the relevant Audio Profiles). But no sounds is played, even if I drop my player in to the water from 100 meters altitude.

Am I missing something here? Is there something else, that needs to be set, before this will work?

Thanks

#1
08/03/2007 (8:55 am)
Works fine for me. Check your audio files and profiles again. Maybe your profile is set at too low a volume/distance. Also check your script for simple typos and lastly make sure your actual audio files are okay.
#2
08/03/2007 (9:26 am)
Thanks for the input! It got me thinking about, that I had copied the player.cs, and made a second file, monster.cs. The Audio Profiles in monster.cs were overwriting the ones from player.cs.

So now it works. Sweeet!

Thanks