wzackw

Veteran
Veteran
Joined
Nov 24, 2015
Messages
38
Reaction score
14
First Language
English
So, I'm wondering if it is possible to do a few things with sound effects:

1) Could I play a long (multi-second) sound effect for footsteps, but cut it off when the player stops walking? (Instead of repeating one short sound each time the player takes a step.)

2) If I were to repeat one short "footstep sound" over and over each time the player takes a step, could I randomly alter its pitch each time it plays? (I have never found a way to handle any type of randomness in RPG Maker MV, or to alter pitch outside the system sound settings, so I assume this is a no-go.)

3) Speaking of randomness, I'd also like to play one of five random noises at irregular random intervals (atmospheric background noises). One of the noises every 30-90 seconds, for example. Is this possible?

Thanks! I really appreciate any help, and sorry for so many questions in one post!

For reference, this is my game:
wzackw.itch.io/monster-garden
 
Last edited:

megumi014

Veteran
Veteran
Joined
Mar 8, 2017
Messages
130
Reaction score
213
First Language
Spanish
Primarily Uses
RMMV
Hi! I haven't looked much into it, so I don't know if it will be perfect, but for the first problem you have I tried this and seems to work:

Make a parallel event, create a conditional branch and on the script command write:

$gamePlayer.isMoving();

and play the SE you want. Check the "else" branch and in there use the Stop SE command. It should stop playing when the player stops walking even if the SE is long.

For the random noises I guess another parallel event would work (I don't know if you can combine them to not have so many parallel running and creating lag): control a variable and set it to random x - x (the numbers you want). Then make one conditional branch for every result and play a different SE and the waiting time you desire after them (or the waiting time before the control variable, so you don't have to repeat it in every conditional branch, but it wouldn't be so random).

I actually tried to combine this random method with the first one, to try to modify the pitch of the steps (another variable = random numbers) but the result is too random if the SE is short (it kinda works though, maybe if you play around with it you find a better solution with longer SE).

I hope it helped :) If you need screenshots of the events let me know.
 

wzackw

Veteran
Veteran
Joined
Nov 24, 2015
Messages
38
Reaction score
14
First Language
English
Thank you! I think that actually all makes sense to me! I've come a long way with RPG Maker XD

I didn't know about the random variables within a range, but that sounds perfect. :D

Thanks!
 

Latest Threads

Latest Profile Posts

unintentionally made a track that sounds straight out of Yume Nikki
Revisiting one of my older projects in a long time to work some more on the mechanics. I've been working on- and off-again for about a year now on recreating the Force and Mystic systems from Wild ARMs. And I think I've finally made some good breakthroughs on that!

Still, it is not perfect and I may post my thoughts at a later time to see if there are any other suggestions or alternatives I've missed.
actor name string, why you gotta be case sensitive like that?
Doing RPG Maker News for 26th October 2021

My entire world, full of monsters and treasures, will likely be done by the end of the year. After that it's all NPCs and side quests... then done. I'm never making an open world game again xD

Forum statistics

Threads
116,103
Messages
1,095,803
Members
151,493
Latest member
xuincy
Top