RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
Animated Battlers! Maker VX

0 Members and 1 Guest are viewing this topic.

**
Rep:
Level 83
Introduction

Animated Battlers 1.0

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
 
Code: [Select]
#====================================================================#
#  #*****************#           Allow you animate battlers graphics #    
#  #*** By Falcao ***#           during the battle process           #          
#  #*****************#                                               #
#         RMVX                   Intrucciones: Copy and paste the    #
# makerpalace.onlinegoo.com      script to your project              #  
#====================================================================#

#--------------------------------------
# Animated Battlers 1.0 Falcao script
#-------------------------------------

class Game_Battler
  attr_accessor :zoom_x
  attr_accessor :zoom_y
  alias falcaoB_zoom_ini initialize
  def initialize
    falcaoB_zoom_ini
    @zoom_x = 1.0
    @zoom_y = 1.0
    @zoom_time = 0
  end
  def zoom(x,y)
    self.zoom_x = x
    self.zoom_y = y
  end
  def zoom_plus(x,y)
    self.zoom_x += x
    self.zoom_y += y
  end
  def zoom_less(x,y)
    self.zoom_x -= x
    self.zoom_y -= y
  end
 
  def breath
    @zoom_time += 1
    if @zoom_time <= 50
     zoom_plus(0.002,0.002)
    end
    if @zoom_time >= 50
      zoom_less(0.002,0.002)
      if self.zoom_x <= 1
        zoom(1,1); @zoom_time = 0
      end
    end
  end
 
  def breath_slow
    @zoom_time += 1
    if @zoom_time <= 50
     zoom_plus(0.001,0.001)
    end
    if @zoom_time >= 50
      zoom_less(0.001,0.001)
      if self.zoom_x <= 1
        zoom(1,1); @zoom_time = 0
      end
    end
  end
end

class Sprite_Battler < Sprite_Base
  alias falcaoBattler_zoom_update update
  def update
     falcaoBattler_zoom_update
     if @zoom_x != @battler.zoom_x or
       @zoom_y != @battler.zoom_y
       @zoom_x = @battler.zoom_x
       @zoom_y = @battler.zoom_y      
       self.zoom_x = @battler.zoom_x
       self.zoom_y = @battler.zoom_y
     end
  end
  alias falcaoBattler_update update_battler_bitmap
  def update_battler_bitmap
    falcaoBattler_update
    if @height <= 200
      @battler.breath
    elsif @height > 200
      @battler.breath_slow
    end
  end
end


 
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
« Last Edit: September 07, 2009, 03:56:21 PM by Dark_falcao »

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Use of Avatar and Signature Space2011 Best RPG Maker User (Scripting)2011 Most Mature Member2011 Favourite Staff Member2011 Best Veteran2010 Most Mature Member2010 Favourite Staff Member
This seems interesting. I will have to check it out.

********
Resource Artist
Rep:
Level 94
\\\\\
Project of the Month winner for June 2009
I guess I'll say it again, unless there's a dupe post of this script around here. I don't like static battlers either, and nice script. Again...

**
Rep:
Level 83
If you find any bug let me know to fix it

Also suggest something to improve the script

May be in the next version i will add breath effect based in enemy HP

Thank for your opinions

My english is horrible i think jeje

**
Rep:
Level 83
i got this error

undefined method update_battler_bitmap for class Sprite Battler

what should I do?

**
Rep:
Level 83
This script work pefectly with the deafault battle system even with tenkentai lateral battle system

I dont Know why you gat that king of error but i gonna look aroud to find the problem.

**
Rep: +0/-0Level 83
This doesn't seem to work with Takentai ATB.  Is there a way you could add compatibility?

**
Rep: +0/-0Level 73
RMRK Junior
i get an error using this script

Quote
script 'animated battlers' line 59: No MethodError occured.
undefined method 'zoom_x' for nil:Nil Class

what i hav to do?

**
Rep:
Level 75
RMRK Junior
Quote
i get an error using this script


Quote
script 'animated battlers' line 59: No MethodError occured.
undefined method 'zoom_x' for nil:Nil Class

what i hav to do?

Try Mintos Animated Battler Script

http://rmrk.net/index.php/topic,41416.0.html

**
Rep:
Level 63
RMRK Junior
thanks, looks nice, i'm really new to this but no far no bugs