| 
 
| 赞 | 0 |  
| VIP | 0 |  
| 好人卡 | 20 |  
| 积分 | 17 |  
| 经验 | 42858 |  
| 最后登录 | 2025-10-19 |  
| 在线时间 | 761 小时 |  
 Lv3.寻梦者 
	梦石0 星屑1731 在线时间761 小时注册时间2013-9-23帖子211 
 | 
| 我是脚本白痴,有出错的地方也是正常的,呵呵(─.─||| 复制代码#==============================================================================
# ■ Game_Actor
#==============================================================================
class Game_Actor < Game_Battler
  #--------------------------------------------------------------------------
  # ● 是否使用精灵
  #--------------------------------------------------------------------------
  def use_sprite?
    true
  end
  #--------------------------------------------------------------------------
  # ● 战斗画面 X 坐标
  #--------------------------------------------------------------------------
  def screen_x
    Graphics.width / 2
  end
  #--------------------------------------------------------------------------
  # ● 战斗画面 Y 坐标
  #--------------------------------------------------------------------------
  def screen_y
    Graphics.height
  end
  #--------------------------------------------------------------------------
  # ● 战斗画面 Z 坐标
  #--------------------------------------------------------------------------
  def screen_z
    return 100
  end
end
#==============================================================================
# ■ Sprite_Battler
#==============================================================================
class Sprite_Battler < Sprite_Base
  #--------------------------------------------------------------------------
  # ● 设置动画的原点
  #--------------------------------------------------------------------------
  def set_animation_origin
    if @animation.position == 3
    # 数据库中设定的动画基础位置是 [画面] 时的坐标变更
      @ani_ox = viewport.rect.width / 2
      yy = viewport.rect.height / 5
      @ani_oy = @battler.actor? ? (yy * 4) : (yy * 2.5)
    else
      @ani_ox = x - ox + width / 2
      @ani_oy = y - oy + height / 2
      if @animation.position == 0
        @ani_oy -= height / 2
      elsif @animation.position == 2
        @ani_oy += height / 2
      end
    end
  end
end
 | 
 评分
查看全部评分
 |