Game Development Community

Sound issues on weapons

by Jacob Dankovchik · in Torque Game Engine · 07/21/2004 (3:58 pm) · 2 replies

I've noticed this as a small issue with sounds, but not sure anyone can help anyhow. But it seems with sounds that play very fast on a weapon, sometimes the sound doesnt play at the right time. Like, the fire sound will come late or something and get jumbled up, but the fireing is still at a constant rate.
Not sure if anyone has noticed this as well, or could help, but thought i'd mention it just in case.

#1
07/26/2004 (4:54 am)
You can only play a certain number of sounds at once. If you a long gun firing sound, something like *POWWWWaahhhhh...* and you try and use that for your machine gun that fires 3 times a second, every time the gun fires it uses a new sound slot and that slot isnt set free until the sound ends. So you quickly use up all youre available sound slots.

A better way to do it is to create one looping sound that goes *POPOPPOPOP* and have it loop while you're firing, then when you let go of the trigger have an end fire sound *wahhhh* That way you're only using one sound slot. The tribes 2 chaingun does this, so does the elf gun i think. Take a look at those.
#2
07/26/2004 (5:14 am)
I noticed with the demo that on one time I loaded it up, right when i clicked, it would make the sound, then play the real sound once it hit the ground, or opject...