c023-DeV
Member
Hey
I'm having some trouble with audio_play_sound_at()...
I'm working on a topdown game (zelda-(ish) camera perspective)
I've imported my sounds and set them to 3D...
and I've set up my code like this:
I want the sound to be heard at regular volume within a 32px radius and then exponentially fade out to 0% volume at 256 px ...
The stereo positioning works fine but the volume does not change. I've been trying all kinds of settings and none seem to fade out the gain for me. What settings do you use for Top-Down games?
I'm having some trouble with audio_play_sound_at()...
I'm working on a topdown game (zelda-(ish) camera perspective)
I've imported my sounds and set them to 3D...
and I've set up my code like this:
Code:
//Global settings (create)
audio_falloff_set_model(audio_falloff_exponent_distance);
audio_listener_orientation(0, 0, 1, 0, -1, 0);
//Player Step event
audio_listener_position( x, y, 0);
//The object that plays the sound
audio_play_sound_at(snd_music01,x,y,0,32,256,1,true,3);
The stereo positioning works fine but the volume does not change. I've been trying all kinds of settings and none seem to fade out the gain for me. What settings do you use for Top-Down games?