l0rdph0enix
Member
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