赞 | 0 |
VIP | 177 |
好人卡 | 10 |
积分 | 1 |
经验 | 12547 |
最后登录 | 2017-8-1 |
在线时间 | 193 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 50
- 在线时间
- 193 小时
- 注册时间
- 2013-3-24
- 帖子
- 448
|
圖片名稱為"pX.png"(X為角色編號)(放在Pictures下)
在Windows_Base裡發現def draw_actor_graphic(actor, x, y)
改成下面這樣- def draw_actor_graphic(actor, x, y)
- bitmap = Bitmap.new('Graphics/Pictures/p' + (actor.id-1).to_s + '.png')
- #bitmap = RPG::Cache.character(actor.character_name, actor.character_hue)
- cw = bitmap.width #/ 4
- ch = bitmap.height #/ 4
- src_rect = Rect.new(0, 0, cw, ch)
- #self.contents.blt(x - cw / 2, y - ch, bitmap, src_rect)
- self.contents.blt(x - cw / 4, y - ch + 13, bitmap, src_rect)
- end
复制代码 然後在Windown_Target裡發現def refresh
改成這樣- def refresh
- self.contents.clear
- for i in 0...$game_party.actors.size
- x = 4
- y = i * 116
- actor = $game_party.actors[i]
- draw_actor_graphic(actor, x-10, y+80)
- #draw_actor_name(actor, x+70, y)
- draw_actor_name(actor, x+70, y)
- draw_actor_class(actor, x + 144, y)
- #draw_actor_level(actor, x + 8, y + 32)
- draw_actor_level(actor, x+70, y + 32)
- draw_actor_state(actor, x + 8, y + 64)
- draw_actor_hp(actor, x + 152, y + 32)
- draw_actor_sp(actor, x + 152, y + 64)
- end
- end
复制代码 看起來就像這樣:
p.s.你選單裡的行走圖也會被改掉... |
评分
-
查看全部评分
|