I tried to do somethign like
// random shooting proc behind this...
var/sound/S = sound('Gunshot.mid') // ...
S.x += Clicked_Place.x-x
S.y += Clicked_Place.y-y
var/volume = 100-get_dist(src,Clicked_Place)*3 // This one works
view() << S
It doesn't work very well with the x and y variables (runtime errors), but if I erase them, the volume works.
Any tutorials?
Thanks!
Try removing the "+"'s. Also, that volume variable won't do anything...
Can you post the errors?
Also, it might be worth noting that you've got your position variables mixed up:
sound.x = left and right
sound.y = above and below
sound.z = in front and behind
If you still can't get it to work, I'd be happy to post my version, but I figured you would want to try fixing yours first :)