Advertisement
SSTrihan

Step anime for followers

Feb 27th, 2022
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 1.45 KB | None | 0 0
  1. #-------------------------------------------------------------------------------
  2. # Don't remove this header!
  3. #-------------------------------------------------------------------------------
  4. # Step anime for followers
  5. # by Trihan
  6. #
  7. # Version : 1.0
  8. #
  9. # This script is commissioned by Batworks Software.
  10. #-------------------------------------------------------------------------------
  11.  
  12. #-------------------------------------------------------------------------------
  13. # Version History
  14. #-------------------------------------------------------------------------------
  15. # 1.0 - Initial script.
  16. #-------------------------------------------------------------------------------
  17.  
  18. #-------------------------------------------------------------------------------
  19. # Add <step_anime> to the note of any character who you want to be stepping in
  20. # place while included in the party followers.
  21. #-------------------------------------------------------------------------------
  22. class Game_Follower < Game_Character
  23.   def update
  24.     @move_speed     = $game_player.real_move_speed
  25.     @transparent    = $game_player.transparent
  26.     @walk_anime     = $game_player.walk_anime
  27.     if actor && actor.note =~ /<step_anime>/
  28.       @step_anime = true
  29.     else
  30.       @step_anime     = $game_player.step_anime
  31.     end
  32.     @direction_fix  = $game_player.direction_fix
  33.     @opacity        = $game_player.opacity
  34.     @blend_type     = $game_player.blend_type
  35.     super
  36.   end
  37. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement