|
发表于 2006-8-4 01:20:06
|
显示全部楼层
下不来????不是吧...那我贴出来吧
在Window_Base定义了个...- #--------------------------------------------------------------------------
- # ● 战斗时图形的描绘
- # actor : 角色
- # x : 描画目标 X 坐标
- # y : 描画目标 Y 坐标
- #--------------------------------------------------------------------------
- def draw_battle_actor(actor, x, y)
- bitmap=Bitmap.new("Graphics/Pictures/#{actor.id}")
- cw = bitmap.width
- ch = bitmap.height
- src_rect = Rect.new(0, 0, cw, ch)
- self.contents.blt(x - cw / 2, y - ch, bitmap, src_rect)
- end
复制代码
然后找到Window_BattleStatus里的def refresh那段...
在后添加一句...- draw_battle_actor(actor,actor_x,132)
复制代码
OK...完工...前提是横版战斗....至于图片坐标自己调整吧~~ |
|