Indie Dev

Hello Guest!. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, sell your games, upload content, as well as connect with other members through your own private inbox!

Audio Event Scripting [questions and such]

SonarCero

Towns Guard
Xy$
0.10
Hey folks, I don't know if this is possible or not, though going based off of one of the videos made by SumRndmDde, would it be possible to change this script to fit for audio? This is the original script.
var tint = $gamePlayer.y * ((255 - 68) /57);
$gameScreen.startTint([tint, tint, tint, 0], 0)
The script above is used to change the tint of the screen from almost completely black to a shady almost night scene. Is it possible to change volume of a bgm/bgs to a similar degree, where the closer a player gets to a certain point, the audio will change depending on distance? Any and all help is more than welcome.
 
Top