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...
 

Latest Threads

Latest Profile Posts

When you have your friend over and you try to have a good time and let him try your game but he legit finds 10+ bugs that you now have to add to your already big workload for the day lol.
Zaj
Okay anothe stupid question from me. Why is when everyone's explaining the scripts in the scriptlets, it chnge into green. how do i know when do i code without knowing whether its turning green or not
So I realized that I really just don't have enough time to make videos. However I don't mind clicking stream and just letting people watch me work on my game. I don't really have a good microphone... okay it's a $20 headset so it's terrible, and I have no web cam. So the stream would largely be royalty free music and me working, with minor interaction. I guess the question is, would that actually interest anybody?
Child base test two, flappin' their arms like it's VX Ace.
ChildTest-02.gif

Forum statistics

Threads
111,326
Messages
1,060,211
Members
144,643
Latest member
Classanime999
Top