Continuous Player Animation
Continually plays the step animation while there is keyboard input

Common Event
Since there was lag with doing this in the actual script, it was easier to just create a common event to handle the switch operations.

CODE
Conditional Branch > Script > Input.press?(Input::DOWN)||Input.press?(Input::LEFT)||Input.press?(Input::RIGHT)||Input.press?(Input::UP)
Switch Operations: Turn Switch 002 ON
else
Switch Operations: Turn Switch 002 OFF
end


Script
CODE
class Game_Player
#--------------------------------------------------------------------------
# continuously play the step animation
#--------------------------------------------------------------------------
    alias :xeilsoft_ani_update :update
    def update
      xeilsoft_ani_update
      if actor && $game_switches[2] == true
        @walk_anime = true
        @step_anime = true
      else
        @step_anime = false
      end
    end
  end
  
class Game_CharacterBase
  #--------------------------------------------------------------------------
  # ● Update
  #--------------------------------------------------------------------------
  def update_anime_count
    if moving? && @walk_anime
      @anime_count += 1.4 # smaller numbers equal smoother animation
    elsif @step_anime || @pattern != @original_pattern
      @anime_count += 1
    end
  end
end


Enjoy