KharStepOrder VX + ACE
#1
KharStepOrder
VX + ACE

by Kyonides

Introduction

This scriptlet allows you to change which character's leg goes first while walking around.
Happy with a sweat Really, that's it!

To change the Game_Character's default option, look for the @@step_order class variable and set it to :left or :right

Change the Current Pattern Order for All Walking Characters in Game:

Code:
Game_Character.step_order = :left OR :right

Script for VX

Code:
# * KharStepOrder VX * #
#   Scripter : Kyonides Arkanthes
#   2024-09-03

# * Game_Character's Default Option * #
# @@step_order = :left OR :right

# * Script Call * #
# - Change the Current Pattern Order for All Walking Characters:
# Game_Character.step_order = :left OR :right

class Game_Character
  @@step_order = :right
  def self.step_order=(order)
    @@step_order = order
  end

  def self.set_step_order
    (@@step_order == :right ? 1 : -1)
  end

  def update_animation
    @leg_order = Game_Character.set_step_order
    speed = @move_speed + (dash? ? 1 : 0)
    if @anime_count > 18 - speed * 2
      if not @step_anime and @stop_count > 0
        @pattern = @original_pattern
      else
        @pattern = (@pattern + @leg_order) % 4
      end
      @anime_count = 0
    end
  end
end


Script for VX ACE

Code:
# * KharStepOrder ACE * #
#   Scripter : Kyonides Arkanthes
#   2024-09-03

# * Game_Character's Default Option * #
# @@step_order = :left OR :right

# * Script Call * #
# - Change the Current Pattern Order for All Walking Characters:
# Game_Character.step_order = :left OR :right

class Game_Character
  @@step_order = :right
  def self.step_order=(order)
    @@step_order = order
  end

  def self.set_step_order
    (@@step_order == :right ? 1 : -1)
  end

  def update_anime_pattern
    @leg_order = Game_Character.set_step_order
    if !@step_anime && @stop_count > 0
      @pattern = @original_pattern
    else
      @pattern = (@pattern + @leg_order) % 4
    end
  end
end

Terms & Conditions

Free for use in ANY game. Gamer
Due credit is mandatory because I say so. 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 }


Messages In This Thread
KharStepOrder VX + ACE - by kyonides - 09-03-2024, 10:59 PM



Users browsing this thread: 1 Guest(s)