Sound Emitting Events

bladedvoid

Villager
Member
Joined
Jan 2, 2017
Messages
13
Reaction score
2
First Language
English
Primarily Uses
Hello. I am developing a cutscene for my game in RMMV, and I think that having this simple script could not only make the cutscene 10x better, but it would also be useful in other areas of the game.


I found what I was looking for... in a 4 year old topic, for VX Ace, here.


Essentially, it would allow me to (if I was using VX Ace) play a BGS emitting from an event that gets louder depending on how close the player is relative to it. The volume is based on the distance between the player and the event. This is useful for approaching rivers, NPCs, lava, fire... etc.


The syntax for what the script user could be something similar to that old one's... a command, accompanied by variables for:


1. how loud the BGS is when the player is directly on top of the sound-emitting event;


2. the pitch of the BGS; and


3. the range of how far away from the event the player has to be to hear the BGS.


I imagine this simple formula would account for the range vs volume:


Volume at player position = Maximum volume specified in script command / Range specified


and I think there would have to be some rounding, as RMMV probably doesn't accept decimals or anything that isn't an interval of 5 as the volume of the BGS.


Excuse my bad photo-editing skills, but here's a diagram.


Thanks in advance!


edit: this has been discontinued (I assume), seems to only work with .m4a, and makes my BGM sound like it desperately needs to be rescued.
 
Last edited by a moderator:

bladedvoid

Villager
Member
Joined
Jan 2, 2017
Messages
13
Reaction score
2
First Language
English
Primarily Uses
Bump... I still need this and it would be extremely helpful for ambient effects...
 

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

Latest Threads

Latest Profile Posts

It seems like this is going to be another remote semester. RIP.
I don't like linear gear progression in games. I'd like to see more gear be useful from start to finish. This is also true for skills. I also like finding overpowered gear, and don't enjoy games that are too balanced.
Framework is getting closer to completion. Adding more QoL changes for users.
I'm very excited with DE:VOID! And FYI Darkness of Hope - The Pocket Watch in development, so please be excited!
The more I look at the QPlugins... The more I am amazed at what they can do. Which I'm not going to lie is pretty awkward, because I already consider them far and away the best plugins MV has to offer. :kaoback:

Forum statistics

Threads
99,509
Messages
966,189
Members
131,138
Latest member
MrRenato
Top