• 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.
Resource icon

Step On Spot OW Animation 1.0

Pokémon Essentials Version
Non-applicable
step_on_spot.gif

Short and sweet script that we've found useful in our project. In main series games, often a character will step on the spot to show surprise, or to pick up an object. Now it's easier to do in Essentials with a simple command.

Just install the code below and call pbStepOnSpot(eventID) for events or pbStepOnSpot for the player.

Ruby:
Expand Collapse Copy
#-------------------------------------------------------------------------------
# Step On Spot v1.0 by Boonzeet
#-------------------------------------------------------------------------------
# Makes a character or the player step on the spot, for cutscene animations.
#-------------------------------------------------------------------------------
# To use, either call event.step_on_spot with an event object, or from a script
# tag use pbStepOnSpot(eventID) for events or pbStepOnSpot for player.
#-------------------------------------------------------------------------------
PluginManager.register({
  :name => "Step On Spot",
  :version => "1.0",
  :credits => "Boonzeet",
  :link => "https://reliccastle.com/resources/648/"
})
class Game_Character
  def step_on_spot
    oldpattern = self.pattern
    frames = [0,1,1,0]
    4.times do |frame|
      self.pattern = frames[frame]
      4.times do
        Graphics.update
        Input.update
        pbUpdateSceneMap
      end
    end
    self.pattern = oldpattern
  end
end
def pbStepOnSpot(eventID=nil)
  if (eventID == nil)
    event = $game_player
  else
    return if eventID > $game_map.events.size
    event = $game_map.events[eventID]
    return if event == nil
  end
  event.step_on_spot
end
Credits
Boonzeet
Author
boonzeet
Views
2,334
First release
Last update

Ratings

0.00 star(s) 0 ratings

More resources from boonzeet

Back
Top