12-28-2013, 03:41 PM
well sort of... if you want to go with an event system...
First, store your event X and event y into variables, and store your player x and y into variables...
Now you want the sound variables to have a x and a Y sensor variable...
For instance, SOUNDX = PlayerX and then another event system saying SOUNDX subtract EventX
This will give you the distance between your sound and your player on the X axis, repeat for the Y axis...
Then if you need to play a noise, it can be a conditional statement or even tabs of the event...
Variable is 5 or above, well that would be a faint sound, 4 or above would be slightly louder, 3 or above even larger, and well 1 or above, it's right on you...
I like this method in FPLE dungeons because it gives me the echo effect. I could be right next to a sound event on the Y axis and be 20 tiles away on the X, and I might still get a echo of a sound. Playing with the reverb on major distances like that can have some spooky effects.
Alternatively, you should check out http://save-point.org/thread-2771.html for View Range 3 by near Fantastica and our own DerVVulfman!
First, store your event X and event y into variables, and store your player x and y into variables...
Now you want the sound variables to have a x and a Y sensor variable...
For instance, SOUNDX = PlayerX and then another event system saying SOUNDX subtract EventX
This will give you the distance between your sound and your player on the X axis, repeat for the Y axis...
Then if you need to play a noise, it can be a conditional statement or even tabs of the event...
Variable is 5 or above, well that would be a faint sound, 4 or above would be slightly louder, 3 or above even larger, and well 1 or above, it's right on you...
I like this method in FPLE dungeons because it gives me the echo effect. I could be right next to a sound event on the Y axis and be 20 tiles away on the X, and I might still get a echo of a sound. Playing with the reverb on major distances like that can have some spooky effects.
Alternatively, you should check out http://save-point.org/thread-2771.html for View Range 3 by near Fantastica and our own DerVVulfman!
BLOG: JayVinci.blogspot.com
FORUM COMING SOON
Currently working on:
Ambitions: RPG Developer Bakin
Heart of Vox: RPG Developer Bakin