Microphone detection for horror/stealth game

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

Veteran
Veteran
Joined
Oct 8, 2018
Messages
2,892
Reaction score
1,026
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
399
Reaction score
221
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

^_^
Veteran
Joined
Feb 21, 2018
Messages
2,087
Reaction score
1,508
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
399
Reaction score
221
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:

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,849
Messages
1,016,977
Members
137,563
Latest member
cexojow
Top