じ☆ve冰风 发表于 2026-8-1 12:28:53

Battlers Flip Animation

Made for a request here.

This script simply animate the battlers by flipping their image.

(As shown in the example below but with one difference, each battler has its own move timer, they will not be moving at the same time.)

http://s10.postimg.org/oszpg0kex/flipanimationtestbig.gif

This is mainly for frontal battler's image only, those image facing left or right might turns up wacky or weird.

I might find time to add more features to support non-flippable images if there are demands for it. But don't raise your hope too much.
data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7

http://s7.postimg.org/ra223vz6j/animatedmaneaterviaflip.gif

Features:

Animated Battlers via image flip

How to Use:

Plug and Play, Just paste this script below Material and Above Main

The battler's image should automatically be animated in the battles.

IMPORTANT NOTE:

Not all battler's image are suitable for a flip animation.

So please take your time to go through the RTP to find a suitable battler's image if you are not planning to make your own.

For those who wish to make your own, try to have symmetry in mind and you should be fine.

RTP Example:

http://s7.postimg.org/c7ptt7emz/rtpbattlertest.gif

Compatibility:

This script modifies and overwrite the way battler's sprite are handled.

If you have other scripts that modifies battler's sprite, there's a high chance of conflict.

Terms of Use:

Free for both Commercial and Non-Commercial

Script:

Spoiler                Code:       
#==============================================================================# ■ Meow Face Battler Flip Animation#------------------------------------------------------------------------------# Animate Battlers with Flip and stop when hit effect is running#==============================================================================# How to Use:# Plug & Play#==============================================================================class Sprite_Battler < Sprite_Base  def initialize(viewport, battler = nil) #Overwrite    super(viewport)    @battler = battler    @battler_visible = false    @effect_type = nil    @effect_duration = 0    @stop_flip = false    @flip_counter = rand(30)    self.mirror = (rand(2) == 0)  end  def update_effect #Overwrite    if @effect_duration > 0      @effect_duration -= 1      @stop_flip = true      case @effect_type      when :whiten        update_whiten      when :blink        update_blink      when :appear        update_appear      when :disappear        update_disappear      when :collapse        update_collapse      when :boss_collapse        update_boss_collapse      when :instant_collapse        update_instant_collapse      end      @effect_type = nil if @effect_duration == 0      @stop_flip = false if @effect_duration == 0      @flip_counter = 30 if @effect_duration == 0    end  end  def flip_self #New    if self.mirror == true      self.mirror = false    else      self.mirror = true    end  end  alias meow_sb_update update  def update #Alias    if @flip_counter >= 0      @flip_counter -=1      flip_self if @flip_counter == 0 && !@stop_flip      @flip_counter = 15 if @flip_counter <= 0    end    meow_sb_update  endend








本贴来自国际rpgmaker官方论坛作者:MeowFace处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/battlers-flip-animation.52536/
页: [1]
查看完整版本: Battlers Flip Animation