The Dink Network

Save Bot Sounds

April 18th 2009, 05:09 PM
pillbug.gif
pillbug
Peasant He/Him United States
Love! True love! 
I noticed that the closer you are to the save machine in the game, the louder the humming sound is. Like, if you're only a tile away, the sound would be louder than if you were on the other side of the screen. What allows it to do this?
April 18th 2009, 05:53 PM
dinkdead.gif
If sounds are attached to a sprite they will have this 3D effect. You can do this by using sp_sound() (like in the savebot script), by using playsound(snd_num, 22050, 0, sprite_num, 0) or by giving it a sound in the editor.

If you use sp_sound the sound will loop, same if you set the last number in playsound to 1.
April 18th 2009, 05:57 PM
spike.gif
And, if you really have not noticed, a hell of a lot of other things have the same effect, for example, every single monster in the game.
April 18th 2009, 09:15 PM
pillbug.gif
pillbug
Peasant He/Him United States
Love! True love! 
Thanks, and I never really had noticed that, lol.
April 19th 2009, 02:09 AM
dinkdead.gif
"a hell of a lot of other things have the same effect"

Yes but it's much easier to notice with the savebots because of the continuous sound. Most others only last for a second or so...