• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • Akari, Red, Kris, May - which Pokémon protagonist is your favorite? Let us know by voting in our semifinal favorite protagonist poll!
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

[Question] Adding the sound for walking in grass?

Vxpor

Vxpor
  • 77
    Posts
    6
    Years
    • Seen Feb 19, 2025
    I've noticed in the black and white series of games there is a sound that plays when you walk through grass tiles. Is there a way to get that sound effect and play it when walking through grass tiles in Essentials? Here's an example.
     
    I don't know where to get the SE from, but adding the bold part into the script located in "PField_Field" should do what you wanted:
    Code:
    # Show grass rustle animation, and auto-move the player over waterfalls and ice
    Events.onStepTakenFieldMovement += proc { |sender,e|
      event = e[0] # Get the event affected by field movement
      if $scene.is_a?(Scene_Map)
        currentTag = pbGetTerrainTag(event)
        if PBTerrain.isJustGrass?(pbGetTerrainTag(event,true))  # Won't show if under bridge
          $scene.spriteset.addUserAnimation(GRASS_ANIMATION_ID,event.x,event.y,true,1)
          [B]pbSEPlay("NameOfTheSE")[/B]
     
    Alternatively you can add the SE directly from the Animation Editor in the Database Tab.
     
    Ok, so I just added this sound effect to the first frame of the "grass rustle" in the animations tab of the database. Tried it out in-game and it sounds perfect! Thanks for the help
     
    Back
    Top