Animated Battlers! Maker XP and VX

Animated BattlersVersion: 1.0
By: Falcao

Introduction

Are you tire about that ESTATIC Battlers? here i bring you the best solution in an easy way.
This script allow you animate the battlers graphicts

Features
  • Breath effect in battlers

RPG Maker VX Script

  1.  
  2. #====================================================================#
  3. #  #*****************#           Allow you animate battlers graphics #    
  4. #  #*** By Falcao ***#           during the battle process           #          
  5. #  #*****************#                                               #
  6. #         RMVX                   Intrucciones: Copy and paste the    #
  7. # makerpalace.onlinegoo.com      script to your project              #  
  8. #====================================================================#
  9.  
  10. #--------------------------------------
  11. # Animated Battlers 1.0 Falcao script
  12. #-------------------------------------
  13.  
  14. class Game_Battler
  15.   attr_accessor :zoom_x
  16.   attr_accessor :zoom_y
  17.   alias falcaoB_zoom_ini initialize
  18.   def initialize
  19.     falcaoB_zoom_ini
  20.     @zoom_x = 1.0
  21.     @zoom_y = 1.0
  22.     @zoom_time = 0
  23.   end
  24.   def zoom(x,y)
  25.     self.zoom_x = x
  26.     self.zoom_y = y
  27.   end
  28.   def zoom_plus(x,y)
  29.     self.zoom_x += x
  30.     self.zoom_y += y
  31.   end
  32.   def zoom_less(x,y)
  33.     self.zoom_x -= x
  34.     self.zoom_y -= y
  35.   end
  36.  
  37.   def breath
  38.     @zoom_time += 1
  39.     if @zoom_time <= 50
  40.      zoom_plus(0.002,0.002)
  41.     end
  42.     if @zoom_time >= 50
  43.       zoom_less(0.002,0.002)
  44.       if self.zoom_x <= 1
  45.         zoom(1,1); @zoom_time = 0
  46.       end
  47.     end
  48.   end
  49.  
  50.   def breath_slow
  51.     @zoom_time += 1
  52.     if @zoom_time <= 50
  53.      zoom_plus(0.001,0.001)
  54.     end
  55.     if @zoom_time >= 50
  56.       zoom_less(0.001,0.001)
  57.       if self.zoom_x <= 1
  58.         zoom(1,1); @zoom_time = 0
  59.       end
  60.     end
  61.   end
  62. end
  63.  
  64. class Sprite_Battler < Sprite_Base
  65.   alias falcaoBattler_zoom_update update
  66.   def update
  67.      falcaoBattler_zoom_update
  68.      if @zoom_x != @battler.zoom_x or
  69.        @zoom_y != @battler.zoom_y
  70.        @zoom_x = @battler.zoom_x
  71.        @zoom_y = @battler.zoom_y      
  72.        self.zoom_x = @battler.zoom_x
  73.        self.zoom_y = @battler.zoom_y
  74.      end
  75.   end
  76.   alias falcaoBattler_update update_battler_bitmap
  77.   def update_battler_bitmap
  78.     falcaoBattler_update
  79.     if @height <= 200
  80.       @battler.breath
  81.     elsif @height > 200
  82.       @battler.breath_slow
  83.     end
  84.   end
  85. end
  86.  
  87.  
Expand to see the code.



RPG Maker XP Script

  1.  
  2. #====================================================================#
  3. #  #*****************#           Allow you animate battlers graphics #    
  4. #  #*** By Falcao ***#           during the battle process           #          
  5. #  #*****************#                                               #
  6. #         RMVX                   Intrucciones: Copy and paste the    #
  7. # makerpalace.onlinegoo.com      script to your project              #  
  8. #====================================================================#
  9.  
  10.  
  11. module Falcao
  12.  
  13. # Animate actor battlers change true or false  
  14. IncludeActors = false
  15.  
  16. end
  17.  
  18. class Game_Battler
  19.   attr_accessor :zoom_x
  20.   attr_accessor :zoom_y
  21.   alias falcaoB_zoom_ini initialize
  22.   def initialize
  23.     falcaoB_zoom_ini
  24.     @zoom_x = 1.0
  25.     @zoom_y = 1.0
  26.     @zoom_time = 0
  27.     @actor_breath = 0
  28.   end
  29.   def zoom(x,y)
  30.     self.zoom_x = x
  31.     self.zoom_y = y
  32.   end
  33.  
  34.   def zoom_plus(x,y)
  35.     self.zoom_x += x
  36.     self.zoom_y += y
  37.   end
  38.   def zoom_less(x,y)
  39.     self.zoom_x -= x
  40.     self.zoom_y -= y
  41.   end
  42.  
  43.   def breath
  44.     @zoom_time += 1
  45.     x = 0.002; y = 0.002
  46.     if @zoom_time <= 50
  47.      zoom_plus(x,y)
  48.     end
  49.     if @zoom_time >= 50
  50.       zoom_less(x,y)
  51.       if self.zoom_x <= 1
  52.         zoom(1,1); @zoom_time = 0
  53.       end
  54.     end
  55.   end
  56.  
  57.   def breath_slow
  58.     @zoom_time += 1
  59.     if @zoom_time <= 50
  60.      zoom_plus(0.001,0.001)
  61.     end
  62.     if @zoom_time >= 50
  63.       zoom_less(0.001,0.001)
  64.       if self.zoom_x <= 1
  65.         zoom(1,1); @zoom_time = 0
  66.       end
  67.     end
  68.   end
  69.  
  70.   def breath_actors
  71.     @actor_breath += 5
  72.     if @actor_breath <= 30
  73.      zoom_plus(0.004,0.004)
  74.     end
  75.     if @actor_breath >= 30
  76.       zoom_less(0.004,0.004)
  77.       if self.zoom_x <= 1
  78.         zoom(1,1); @actor_breath = 0
  79.       end
  80.     end
  81.   end
  82. end
  83.  
  84. class Sprite_Battler < RPG::Sprite
  85.   alias falcaoBattler_zoom_update update
  86.   def update
  87.      falcaoBattler_zoom_update
  88.      if @zoom_x != @battler.zoom_x or
  89.        @zoom_y != @battler.zoom_y
  90.        @zoom_x = @battler.zoom_x
  91.        @zoom_y = @battler.zoom_y      
  92.        self.zoom_x = @battler.zoom_x
  93.        self.zoom_y = @battler.zoom_y
  94.      end
  95.      if @height <= 200
  96.       @battler.breath
  97.     elsif @height > 200
  98.       @battler.breath_slow
  99.     end
  100.     if @battler.is_a?(Game_Actor)
  101.       if Falcao::IncludeActors == true
  102.          @battler.breath_actors
  103.        else
  104.        @battler.zoom(1,1)
  105.       end
  106.     end
  107.   end
  108. end
  109.  
Expand to see the code.


Instructions

Copy and paste the script to your poject. Yeah! very easy

Compatibility

Sprite_Battler < Sprite_Base aliased

Credits and Thanks

By Falcao

Terms and Conditions

Can be used in comercial or non-comercial games
How about some screenshots?
ArcanaMagek wrote:
How about some screenshots?


I can't show animated battlers in a screenshots.

So you have the script right on, try it!.

Let me know if you have any trouble
Is this plug 'n play for VX? Also, does this work with Takentai? Because I'm getting an error:

Script animated battlers 'line 67: NoMethodError occured
undefined method zoom_x for nil:NilClass
SuperMega wrote:
Is this plug 'n play for VX? Also, does this work with Takentai? Because I'm getting an error:

Script animated battlers 'line 67: NoMethodError occured
undefined method zoom_x for nil:NilClass


You mean the tenkentai CBS from Atoa?

Thats for maker xp right?

Let me try this script in that scripts system
falcao wrote:
SuperMega wrote:
Is this plug 'n play for VX? Also, does this work with Takentai? Because I'm getting an error:

Script animated battlers 'line 67: NoMethodError occured
undefined method zoom_x for nil:NilClass


You mean the tenkentai CBS from Atoa?

Thats for maker xp right?

Let me try this script in that scripts system

Nope, I mean Takentai for RPG Maker VX. It's made by Enu.

Original thread: https://www.hbgames.org/forums/viewtopic.php?t=67291