赞 | 0 |
VIP | 35 |
好人卡 | 0 |
积分 | 1 |
经验 | 96121 |
最后登录 | 2020-2-15 |
在线时间 | 22 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 55
- 在线时间
- 22 小时
- 注册时间
- 2006-4-22
- 帖子
- 370
|
首先在Window_Base找个位置插入这个#--------------------------------------------------------------------------
#●角色头像描绘
#---------------------------------------------------------------------------
def draw_actor_heads(actor,x,y)
bitmap = RPG::Cache.picture(actor.name + "_f")#显示名字为"角色名字后加_f的图片"
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显示头像,不过在这里写的话方便以后调用~~)
然后在Window_BattleStatus的下面插入这个
draw_actor_heads(actor,actor_x,120) 坐标可能不对,自己调下应该就可以了
~~你只要在picture文件夹放名字为"角色名字"+_f的图片进去就行了~~如阿尔西斯_f 系统信息:本贴由楼主认可为正确答案,66RPG感谢您的热情解答~ |
|