Swafer

Regular
Regular
Joined
Jul 25, 2018
Messages
57
Reaction score
8
First Language
English
Primarily Uses
RMMV
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
Regular
Joined
Oct 8, 2018
Messages
8,184
Reaction score
3,429
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
Regular
Joined
Nov 5, 2018
Messages
412
Reaction score
242
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

Regular
Regular
Joined
Jul 25, 2018
Messages
57
Reaction score
8
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?

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

caethyril

^_^
Global Mod
Joined
Feb 21, 2018
Messages
5,235
Reaction score
4,682
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
Regular
Joined
Nov 5, 2018
Messages
412
Reaction score
242
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

Man, the game jam seems like fun, but also I've already been putting off working on my bigger project, and I have an artist alley to prep for by March, which may as well be tomorrow with mail times... and I have my actual job, ugh.
Twitch! At it with some game development for a short while! Feel free to drop by~
I figured since I've been using MZ for a year now I should update my primary uses finally. Doubt I will use ACE again unless it is to finish up a couple small ACE projects I still got going.
image.png

work in progress

Found some images of the original production drawings from the 1995 GitS movie.
The style I always aimed for but was never able to reach - until now xD
But now I have to rework all the character art.
Again...
Life is easier with cheeseburgers. And beer battered fries. I don't want to cook tonight, but if I'm going to, I'm going to eat like a junk food king!

Forum statistics

Threads
136,587
Messages
1,267,867
Members
180,277
Latest member
Puzzlecube
Top