Stegan

Villager
Member
Joined
Nov 21, 2020
Messages
22
Reaction score
0
First Language
German
Primarily Uses
RMVXA
Hello, I'm trying out the Victor Engine - Step Sound script for my game. It works perfectly but I feel that the sounds from my enemies are too loud. If my player walks around on a map and an enemy is 10 or 15 blocks away from him it sounds like he's walking right beside him. Is there any way to decrease the range in which the player starts hearing the enemy events?

Thank you.

- Steve

 

mlogan

Global Moderators
Global Mod
Joined
Mar 18, 2012
Messages
16,148
Reaction score
8,936
First Language
English
Primarily Uses
RMMV

I've moved this thread to Script Support. Thank you.

 

Chiispiitas

[Insert Title]
Veteran
Joined
Apr 20, 2020
Messages
32
Reaction score
14
First Language
Spanish
Primarily Uses
RMVXA
Paste this add-on as a separate script below Victor's Step Sound script:

Ruby:
#===============================================================================
# Victor Engine - Step Sound | Hearing Distance Add-on
#-------------------------------------------------------------------------------
# Made by: Chiispiitas
#===============================================================================
#===============================================================================
# Instructions:
#-------------------------------------------------------------------------------
# Lets you change the distance from which you can hear event/followers steps.
# The default value is 20. You may not use negative values for obvious reasons.
#===============================================================================
class Game_CharacterBase
#===============================================================================
# Configuration:
#-------------------------------------------------------------------------------
  HEARING_DISTANCE = 20
#-------------------------------------------------------------------------------
#===============================================================================
 
  def step_volume
    sx = distance_x_from($game_player.x).abs
    sy = distance_y_from($game_player.y).abs
    [[(100 - (sx + sy) * (100 / HEARING_DISTANCE)), 0].max, 100].min / 100.0
  end
 
end

Change the HEARING_DISTANCE variable to your liking. I hope it helps you!
 

Stegan

Villager
Member
Joined
Nov 21, 2020
Messages
22
Reaction score
0
First Language
German
Primarily Uses
RMVXA
Paste this add-on as a separate script below Victor's Step Sound script:

Ruby:
#===============================================================================
# Victor Engine - Step Sound | Hearing Distance Add-on
#-------------------------------------------------------------------------------
# Made by: Chiispiitas
#===============================================================================
#===============================================================================
# Instructions:
#-------------------------------------------------------------------------------
# Lets you change the distance from which you can hear event/followers steps.
# The default value is 20. You may not use negative values for obvious reasons.
#===============================================================================
class Game_CharacterBase
#===============================================================================
# Configuration:
#-------------------------------------------------------------------------------
  HEARING_DISTANCE = 20
#-------------------------------------------------------------------------------
#===============================================================================
 
  def step_volume
    sx = distance_x_from($game_player.x).abs
    sy = distance_y_from($game_player.y).abs
    [[(100 - (sx + sy) * (100 / HEARING_DISTANCE)), 0].max, 100].min / 100.0
  end
 
end

Change the HEARING_DISTANCE variable to your liking. I hope it helps you!
Thank you so much. I will try it out now :)
 

Latest Threads

Latest Posts

Latest Profile Posts

While was working on one of the monsters that will appear in my horor game I may have made harold a Lovecraftian monster. (I used his head to keep things aligned.)
Finally got my website fixed and the security sorted so it's been a productive day. Can I go to sleep now? I mean... I don't need to work right?
It's always a good idea to refresh yourself on what your plugins do. I'm working on a map with opening walls, and I was about to tear my hair out over how much image editing and hand-constructing of autotiles I'd have to do, when I looked again and saw @Shaz 's Tile Changer could copy areas from another map.
"sorry it took me so long to respond" - can we please agree not to say that anymore unless it actually took a long time?! (Like 36hrs at least) I mean, I'm running out of funny responses here xD
Ugh... 4:53AM over here and I can't sleep so why not just game make.

Forum statistics

Threads
115,922
Messages
1,094,028
Members
151,175
Latest member
phobium
Top