Swafer

Veteran
Veteran
Joined
Jul 25, 2018
Messages
46
Reaction score
5
First Language
English
Primarily Uses
N/A
I was trying to find a microphone detection plugin where, whenever a player makes a sound, it could alert enemies nearby to the player.
Gives a sense of realism.

There was a thread that had something similar but the post was old, and the answer that was provided was speculation. where I need strong proof it can work. I looked at the script suggested and it seemed that it's more directed to internet browsers than actual programs.

If there isn't a script, that's fine. let me know if you need me to be specific.

Edit: The post that I was referencing that is nearly 5 years old.

Edit 2:
For those who went to the post linked.
Yes, I did make a reply mentioning that I used VXA.
I use both VXA and MV (the latter more recently) but I moved my game from VXA to MV because I felt like I can do more of what I want on MV than VXA. Not saying that MV is better than VXA.
 
Last edited:

ShadowDragon

Realist
Veteran
Joined
Oct 8, 2018
Messages
4,869
Reaction score
1,869
First Language
Dutch
Primarily Uses
RMMV
so far I know, microphone detection is really hard to do, specially for different sounds detection
like blow, yell, etc like in zelda game "Phnatom Hourglass" to activate things.

so if its possible, maybe, but probably not good enough on those engines if you ask me.
unless there is a really good coder that can make it possible.
 

Silva

Scoobityboo
Veteran
Joined
Nov 5, 2018
Messages
402
Reaction score
226
First Language
English
Primarily Uses
RMMV
I notice you responded on the other thread mentioning that you were using VXA. Are you now using MV or are you still using VXA?
 

Swafer

Veteran
Veteran
Joined
Jul 25, 2018
Messages
46
Reaction score
5
First Language
English
Primarily Uses
N/A
I notice you responded on the other thread mentioning that you were using VXA. Are you now using MV or are you still using VXA?

I use both VXA and MV but I'm moving my game from VXA to MV.
 

caethyril

^_^
Global Mod
Joined
Feb 21, 2018
Messages
3,048
Reaction score
2,358
First Language
EN
Primarily Uses
RMMZ
RMMV games are basically HTML + JavaScript pages. All deployment options (other than Web, a.k.a. "pure HTML") package the game's HTML along with a small Chromium browser: the browser is the application. Iavra's suggestion from the thread you linked, i.e. MediaDevices.getUserMedia(), looks valid! :)

You want something like "check if volume is over this threshold", right? I feel like this mechanic could easily go wrong, either intentionally (e.g. player mutes mic) or due to background noise (frustrating!). Maybe you've already considered this kind of stuff, just thought I'd mention it. :kaoslp:

I did find this old plugin; the code looks promising but I haven't tested to make sure it works: https://forums.rpgmakerweb.com/index.php?threads/noisemater-sazanami.67052/
 

Silva

Scoobityboo
Veteran
Joined
Nov 5, 2018
Messages
402
Reaction score
226
First Language
English
Primarily Uses
RMMV
Like @caethyril has already said MV effectively always runs in a browser so the solution should work much the same. The only difference I've seen with the testing I've just done (using MediaDevices.getUserMedia) is that in a browser there will be a small pop up asking for permission to access the microphone, whereas when launched as a program the request is automatically accepted.

Having tested I do have a small code snippet that is capable of reading the mic's volume level (nothing more at this stage), but I would suggest trying the plugin linked above as it appears much more fleshed out, with the ability to set $gameVariables to the volume level so I'd imagine you'll have an easier time eventing with it.

If the other plugin doesn't work for whatever reason let me know and I can either provide my test code for you to expand on or I can add to it so it's in a usable form for you.
 

Gefest

Warper
Member
Joined
May 15, 2020
Messages
1
Reaction score
0
First Language
English
Primarily Uses
IGM
I was trying to find a microphone detection plugin where, whenever a player makes a sound, it could alert enemies nearby to the player.
Gives a sense of realism.

There was a thread that had something similar but the post was old, and the answer that was provided was speculation. where I need strong proof it can work. I looked at the script suggested and it seemed that it's more directed to internet browsers than actual programs.

If there isn't a script, that's fine. let me know if you need me to be specific.

Edit: The post that I was referencing that is nearly 5 years old.

Edit 2:
For those who went to the post linked.
Yes, I did make a reply mentioning that I used VXA.
I use both VXA and MV (the latter more recently) but I moved my game from VXA to MV because I felt like I can do more of what I want on MV than VXA. Not saying that MV is better than VXA.
Wondering, if you found an answer. Have the same type of question. Also can someone give me a hand with a method of recording sounds for my game? I'm using HEiL Sound PR-40 Dynamic model. This is a pretty good microphone, had some issues with my previous microphone, he doesn't record the proper quality of sound that I needed. So I tried to find a replacement and I found good info at the audio direct website with more information about the best microphones.
Please answer me PM, sorry for offtopic thought.
 
Last edited:

Latest Threads

Latest Posts

Latest Profile Posts

My entire family and I have Covid... If it's this bad with the vaccine, without must be terrible. Stay safe, everyone. This thing is a doozy.
Ugh. Head heavy with sick juice. I wish I could work on my stuff. o_O
GZZPUeX.png

Overflow Form
I'm coming back to my work with Learn RPG Maker MV. Soon I'll be posting previews screenshots for my "paterons"! :guffaw:
Finally caved and implemented TAA Spider's book plugin. What little I lost in terms of aesthetic for the drawn books and notes, this more than makes up for in legibility, organization, and that sweet, sweet update text feature.
oft0nxA.png

Forum statistics

Threads
118,520
Messages
1,116,589
Members
155,530
Latest member
runescapeisawesome
Top