Re: Help needed with the sound pool class in bgt
Well, it is better used because its just easier than actually using sound objects and having to update them all. Its mainly used for big projects, I mostly use the sound object if I want to play a few sounds, etc etc etc. Here's an example of how to use it.
//include the script
#include"sound_pool.bgt"
//define the class
sound_pool p;
void main()
{
//make a few variables
int listener_x=5;
int listener_y=5;
int x=2;
int y=6;
//now we play a sound.
p.play_2d("sound.ogg",listener_x, listener_y, x, y, false);
}
_______________________________________________ Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector