• Hi, Guest!
    Some images might be missing as we move away from using embedded images, sorry for the mess!
    From now on, you'll be required to use a third party to host images. You can learn how to add images here, and if your thread is missing images you can request them here.
    Do not use Discord to host any images you post, these links expire quickly!
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:
#-------------------------------------------------------------------------------
# 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,240
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from boonzeet

Back
Top