• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!
  • Hello [name]! Thanks for joining the GMC. Before making any posts in the Tech Support forum, can we suggest you read the forum rules? These are simple guidelines that we ask you to follow so that you can get the best help possible for your issue.

Question - Code audio_play_sound_at

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:

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);
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?
 
Top