Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Enemy Animated Battlers for XP?

I found this script by Kylock that animates the enemy battler for VX. Was wondering if they have one like this for XP or if it can be ported to XP. I can't seem to find one like it via the search function and it's a little unusual for Google.

Code:
#==============================================================================
# â–  Enemy Animated Battlers for RPG Tankentai Sideview Battle System
#     5.10.2008
#------------------------------------------------------------------------------
#  Script by: Kylock
#==============================================================================
#   Easy to implement interface to specify animated battlers for enemies.  Note
# enemy batters must be formatted THE SAME as your character battlers.  Also,
# you must have 2 copies of your enemy battler:
#   <game folder>\Graphics\Battlers\$<enemy name>.png
#   <game folder>\Graphics\Characters\$<enemy name>_1.png
#   When you set up your "troops" for the encounter, you may need to tweak the
# positioning of the enemy as the sprites look funny and the actual placement
# may be slightly off.  A few battle tests should be sufficient.
#==============================================================================

module K_ENEMY_BATTLERS
  ENEMY_ID = [1,2,5,6,7,8,11,12,13,14,16,18,25,25,26,29,31] # list of enemies with batter sprites(ex. [1,24])
end

class Game_Enemy < Game_Battler
  alias keb_anime_on anime_on
  def anime_on
    for x in K_ENEMY_BATTLERS::ENEMY_ID
      return true if @enemy_id == x
    end
    keb_anime_on
  end
  alias keb_action_mirror action_mirror
  def action_mirror
    for x in K_ENEMY_BATTLERS::ENEMY_ID
      return true if @enemy_id == x
    end
    keb_action_mirror
  end
  alias keb_position_plus position_plus
  def position_plus
    for x in K_ENEMY_BATTLERS::ENEMY_ID
      return [0,0] if @enemy_id == x
    end
    keb_position_plus
  end
end
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top