Can we use regions instead of events? Let's say that I want to use this on the worldmap, when I go closer to the sea, I start hearing the sound of the waves, and the sound becomes stronger while I'm approaching to the sea. Placing a lot of events around the sea in a map of 256x256 shouldn't be necessary if we can use regions instead.
To avoid overwrite functions from other plugins that uses regions, the region id should be specified in the Map Notes with comment tags, for example.... <soundregion 1 seawave>?
That could be an extra feature for this plugin 🙂
EDIT: Oh, also specify a sound to a Tile ID, so we can specify directly the sound of a specified tile, for example sea tile. I guess that my request can be a bit difficult to make, because I guess that a single tile would act as one sound source, so having several tiles would play the sound several times at once, but maybe this can be solved doing something, like.... detect if the tiles are not separated, and when the tile is not separated, instead of act as a single sound source, acts as a whole area being a sound source automatically, or something like that.
@Killuki Zaoldyeck: I'll try implementing those, I'm afraid it'll take quite a while, though.
@Prescott: Indeed it was just left and right stereo, now I fixed it and it's complete 3D x)
And yes, it's based on the characters positions.
@Drake Aran: Maybe, using regions could mess up the whole thing if it was used the wrong way, I can only hope people will know how to use it and will not fill the map with hundreds of region marks >.<
And it doesn't really play only .ogg, it automatically detects the best extension alternative for your device by using the default methods, specially this one:
AudioManager.audioFileExt = function() { if (WebAudio.canPlayOgg() && !Utils.isMobileDevice()) { return '.ogg'; } else { return '.m4a'; }};So, if you can play Ogg and are using a mobile device, the game will choose .ogg, if not, it will choose .m4a.
Added the volume and pitch options, thanks for the advice o/
@ragnorak6608: Ooops, my fault, hope I fixed it x)
Awesome! You are putting some great work into this script, it will be a must have for our game 🙂
Is there a way to turn off a sound? And a way turn it on again, in the same event? I tried to change an event's page for that, but when i changing it back - sound doesn't play again.
I found a bug - if your sound radius covers an event which transfers a player - you can still hear the sound even if the map changed.
No effect plugin after use, can provide an example? thank you
Everything works fine now, thank you.
Yes. Looks good now! Thank you very much!
Hi, I'm having the same problem as Imd0013. I used these event notes: [IMG]https://scontent-gru2-1.xx.fbcdn.net/hphotos-xpt1/v/t1.0-9/10012435_1049335765128000_3665305962232666515_n.jpg?oh=e5a7f0f47486d49ba11c5c28ef89f32e&oe=56FD150D[/IMG]
And nothing happens when I approach the event. All the others plugins are deactivated.
Same problem here.
Can't hear anything. Tried with the 4 lines in a comment, also in separate comments and also adding only the first two (as pitch and volume are stated as optional).
Also had to turn to False "Use HRTF" because got a weird delay in sound and music in the title screen and when it finally started to play it was like pretty bad quality :S