Help - Search - Members - Calendar
Full Version: Walking/Footstep Sound effects
RPG RPG Revolution Forums > Game Engines > RPG Maker XP Discussion
BlaZe22
Hey,
I was just wondering if it was possible to add 'footstep' sound effects in RMXP.
For example, when you walk, a SE plays (or loops?).

Thanks in advance smile.gif
BlaZe22
Bump
Night_Runner
In the Control Variables, set a variable to the step count, then have a wait 1, then set a different variable to the step count. If our player has taken a step the the available 1 frame wait, these two step counts will be different, and you can play a step sound effect smile.gif
BlaZe22
Gah! How did I not think of that!? ohmy.gif

Thank you good sir!
Redd
Here's a script I found. Using scripts is most of the time better than using common events or parallel process events, IMO.
CODE
## Step Sounds - Brew 01AUG10 (ref: Project3)
## Play a different sound with each terrain type
## You must have a file "terrain_x.ogg" in the Audio\SE folder
## Where 'x' is the terrain number. (1-7)

class Game_Player
  alias step_sounds_increase_steps increase_steps
  def increase_steps
    step_sounds_increase_steps
    
    ## Frequency of sound effect. % 2 approx. every 0.5 seconds
    ## % 4 would be approx. every 1 second
    if $game_party.steps % 2 == 0
      
      if terrain_tag > 0
        #play the sound for that terrain
        if FileTest.exist?("Audio/SE/terrain_" + terrain_tag.to_s + ".ogg")
          Audio.se_play("Audio/SE/terrain_" + terrain_tag.to_s)
        end
      end
    end
  end
end


Do some searching before asking for help here, it goes faster for you and for us.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.