=begin RGSS3    ★ 戦闘アニメーションZ座標自動調整 ★ エネミーのY座標によってエネミースプライトとアニメーションのZ座標を調整し、 遠近感を表現します。 ver1.00 Last Update : 2015/04/30 4/30 : RGSS2にあったものを移植 ろかん   http://kaisou-ryouiki.sakura.ne.jp/ =end $rsi ||= {} $rsi["戦闘アニメーションZ座標自動調整"] = true class Sprite_Battler < Sprite_Base #-------------------------------------------------------------------------- # ● 位置の更新 #-------------------------------------------------------------------------- alias adjust_animation_z_update_position update_position def update_position adjust_animation_z_update_position self.z = self.y if @use_sprite end #-------------------------------------------------------------------------- # ● アニメーションスプライトの設定 #-------------------------------------------------------------------------- def animation_set_sprites(frame) super(frame) @ani_sprites.each{|sprite| next unless sprite sprite.z = self.z.next } end end