• Do not use Discord to host any images you post, these links expire quickly! You can learn how to add images to your posts here.
  • Apologies if you've had troubles connecting to the site, you may need a VPN to access it. Staff are also facing issues connecting, so if it's urgent please message Cat on-site or through Discord directly.
  • Hey Guest, staff applications are open! If you are interested in becoming a forum staff member and/or Discord staff member, please apply through this Google Form before April 2! You can also message Cat with any questions.
Resource icon

v20.1 Follower Run Sprites 2023-01-16

This resource pertains to version 20.1 of Pokémon Essentials.
Pokémon Essentials Version
v20.1 ➖
Name the run sprite the regular name + "_run".
So Follower trainer_POKEMONTRAINER_Leaf has a run sprite of trainer_POKEMONTRAINER_Leaf_run

Ruby:
Expand Collapse Copy
class Game_Follower
  alias _runfollowers_initialize initialize
  def initialize(event_data)
    _runfollowers_initialize(event_data)
    @default_character_name = event_data.character_name
  end
 
  def update_move
    was_jumping = jumping?
    if !@moved_last_frame || @stopped_last_frame
      faster = $game_player.can_run?
      if faster && pbResolveBitmap("Graphics/Characters/" + @default_character_name + "_run" )
        self.character_name = sprintf("%s_run", @default_character_name)
      else
        self.character_name = @default_character_name
      end
    end
    super
    if was_jumping && !jumping?
      spriteset = $scene.spriteset(map_id)
      spriteset&.addUserAnimation(Settings::DUST_ANIMATION_ID, self.x, self.y, true, 1)
    end
  end
 
  def update_stop
    if @stopped_last_frame
      self.character_name = @default_character_name
    end
    super
  end
end
Credits
Vendily
Author
Vendily
Views
2,297
First release
Last update

Ratings

5.00 star(s) 1 ratings

More resources from Vendily

Back
Top