Character's Dash Animation
#1
Character's Dash Animation

by Kyonides

Introduction

This is pretty much a plug & play script that will allow you to change the dash animation of the whole party. You must have an extra character spritesheet and name it something like "original_sheet1_dash.png", being "original_sheet1" the actual filename of the original actor spriteset. Then the script will switch from one to another in no time depending on the Dash button and any arrow key or its equivalent.

The Script

Code:
# * Character's Dash Animation * #
#  Scripter : Kyonides Arkanthes
#  2024-04-06

# You will need some extra character spritesheets to make it work.
# Their filenames should include the _dash suffix or they will be ignored.
# It will crash if you never move them in the Graphics/Characters directory.

class Game_Character
  def actor?
    false
  end
end

class Game_Player
  def actor?
    true
  end
end

class Game_Follower
  def actor?
    true
  end
end

class Sprite_Character
  DASH_SUFFIX = "_dash"
  alias :kyon_char_dash_anime_sprt_char_up_bit :update_bitmap
  def initialize(viewport, character=nil)
    super(viewport)
    @character = character
    @party_member = character.actor?
    @balloon_duration = 0
    update
  end

  def update_bitmap
    if @party_member
      bitmap_update
    else
      kyon_char_dash_anime_sprt_char_up_bit
    end
  end

  def bitmap_update
    dashing = $game_player.dash? && Input.dir4 > 0
    if graphic_changed? or dashing != @dashing
      @dashing = dashing
      @tile_id = @character.tile_id
      @character_name = @character.character_name
      @character_name += DASH_SUFFIX if !@character_name.empty? && @dashing
      @character_index = @character.character_index
      if @tile_id > 0
        set_tile_bitmap
      else
        set_character_bitmap
      end
    end
  end
end

Terms & Conditions

Free for use in ANY Gamer game.
Due credit is mandatory.
Tell Dog Wulfo he needs to improve his typing skills. Laughing
That's it! Tongue sticking out
"For God has not destined us for wrath, but for obtaining salvation through our Lord Jesus Christ," 1 Thessalonians 5:9

Maranatha!

The Internet might be either your friend or enemy. It just depends on whether or not she has a bad hair day.

[Image: SP1-Scripter.png]
[Image: SP1-Writer.png]
[Image: SP1-Poet.png]
[Image: SP1-PixelArtist.png]
[Image: SP1-Reporter.png]

My Original Stories (available in English and Spanish)

List of Compiled Binary Executables I have published...
HiddenChest & Roole

Give me a free copy of your completed game if you include at least 3 of my scripts! Laughing + Tongue sticking out

Just some scripts I've already published on the board...
KyoGemBoost XP VX & ACE, RandomEnkounters XP, KSkillShop XP, Kolloseum States XP, KEvents XP, KScenario XP & Gosu, KyoPrizeShop XP Mangostan, Kuests XP, KyoDiscounts XP VX, ACE & MV, KChest XP VX & ACE 2016, KTelePort XP, KSkillMax XP & VX & ACE, Gem Roulette XP VX & VX Ace, KRespawnPoint XP, VX & VX Ace, GiveAway XP VX & ACE, Klearance XP VX & ACE, KUnits XP VX, ACE & Gosu 2017, KLevel XP, KRumors XP & ACE, KMonsterPals XP VX & ACE, KStatsRefill XP VX & ACE, KLotto XP VX & ACE, KItemDesc XP & VX, KPocket XP & VX, OpenChest XP VX & ACE
Reply }


Possibly Related Threads…
Thread Author Replies Views Last Post
   Correct Character Sprite Display MechanicalPen 6 17,419 02-10-2014, 11:20 PM
Last Post: Taylor
   New Character Properties with Calls 2.2 PK8 9 22,345 06-11-2012, 10:46 PM
Last Post: PK8
   Victor Engine - Character Control Victor Sant 0 5,177 01-04-2012, 09:54 AM
Last Post: Victor Sant
   Victor Engine - Loop Animation Victor Sant 0 4,779 01-01-2012, 02:23 PM
Last Post: Victor Sant
   Victor Engine - Character Effects Victor Sant 0 4,738 01-01-2012, 02:08 PM
Last Post: Victor Sant
   Victor Engine - Cast Animation Victor Sant 0 4,742 12-21-2011, 07:48 AM
Last Post: Victor Sant
   Animation Bug Fixed woratana 0 4,167 01-22-2009, 01:22 PM
Last Post: woratana
   Auto-Repeat Animation woratana 0 4,577 01-22-2009, 01:10 PM
Last Post: woratana



Users browsing this thread: 1 Guest(s)