RadethDart
Sponsor
Alright, I have tried and tried, but I can't figure out how to do this. I need a wait time between each time the sound effect plays when the player walks because when I do it like this, the sound effect sounds like a machine gun. >< I need a custom wait in between each sound effect playing because the sound effect allows for 2 steps per sound to make it look like the steps are aligned with the sounds. Could someone please help me here?
Walking Script
Walking Script
Code:
#---------------------------------------------------------------------------
# Walking Sounds
# By Racheal
# Edited by Joshua Long
#---------------------------------------------------------------------------
SOUNDS = []
SOUNDS[1] = RPG::AudioFile.new("Step_Cement", 80, 100)
SOUNDS[4] = RPG::AudioFile.new("032-Switch01", 60, 150)
alias old_update update
#--------------------------------------------------------------------------
# * Frame Update
#--------------------------------------------------------------------------
def update
last_moving = moving?
old_update
if !moving? and last_moving
terrain = $game_map.terrain_tag(x, y)
if SOUNDS[terrain] != nil
$game_system.se_play(SOUNDS[terrain])
end
end
end
end