Play waterfall sound with volume depending on distance to the waterfall

MusicTF

Soundtrack Composer
Veteran
Joined
Mar 30, 2015
Messages
102
Reaction score
8
First Language
English
Primarily Uses
Ok so what I'm looking for is a script that will play the background sound for a waterfall.  The catch is that the waterfall sound should play at a volume proportional to the players distance from the waterfall.  perhaps 6% volume for each step away, maxing out at 60%.  The sound should be audible from 10 steps away.  I have events set up for animations of the waterfalls, so ideally the script could just be called in that event.  I know some about scripting, so if some other things would have to be put in the event, then that would be fine.


Thanks
 

taarna23

Marshmallow Princess
Global Mod
Joined
Jul 20, 2012
Messages
2,402
Reaction score
4,966
First Language
English
Primarily Uses
RMMZ
This is what you need!




Have fun!
 

Alexander Amnell

Jaded Optimist
Veteran
Joined
Mar 17, 2012
Messages
3,404
Reaction score
1,733
First Language
English
Primarily Uses
N/A
Tsukihime's custom event triggers script http://himeworks.com/2013/04/custom-event-triggers/ makes this easy to event. (I've done this exact thing using the region_enter commands and surrounding the waterfall/river/whatever with multiple regions as the player gets closer or further from the source.)


@taarna23That's a nice looking plugin, but does it have an RGSS3 equivalent somewhere?
 

taarna23

Marshmallow Princess
Global Mod
Joined
Jul 20, 2012
Messages
2,402
Reaction score
4,966
First Language
English
Primarily Uses
RMMZ
Aw dang. I didn't see it was Ace! My bad.


Alex's suggestion is probably the better one to consider. Unless you switch to MV, then I'm safe! Haha. ;)
 

Sixth

Veteran
Veteran
Joined
Jul 4, 2014
Messages
2,162
Reaction score
822
First Language
Hungarian
Primarily Uses
RMVXA
Modern Algebra got a script for this. It is called "Sound Emitting Events".
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,860
Messages
1,017,038
Members
137,568
Latest member
invidious
Top