Project1
标题:
Window_Battle_Status 的一些问题
[打印本页]
作者:
Rion幻音
时间:
2010-10-17 22:37
标题:
Window_Battle_Status 的一些问题
本帖最后由 Rion幻音 于 2010-10-17 23:27 编辑
我把 def draw_item 里写的东西删掉并在那儿写了下面几段......
def draw_item(index)
rect = item_rect(index)
rect.x += 4
rect.width -= 8
self.contents.clear_rect(rect)
self.contents.font.color = normal_color
@item_max = $game_party.members.size
actor = $game_party.members
draw_actor_face(actor,index*152+28, 5)
draw_actor_name(actor,index*152+28, 5)
draw_actor_state(actor,index*152+28, 45)
draw_actor_hp(actor,index*152+16, 80)
draw_actor_mp(actor,index*152+16, 100)
复制代码
但是却出现这个问题
undefined method 'face_name' for #<Array:0x2d9e388>
请帮忙解决...
有急用!
作者:
oikl1268
时间:
2010-10-17 22:41
提示:
作者被禁止或删除 内容自动屏蔽
作者:
Rion幻音
时间:
2010-10-17 22:51
原本脚本写成这样...
def draw_item(index)
rect = item_rect(index)
rect.x += 4
rect.width -= 8
self.contents.clear_rect(rect)
self.contents.font.color = normal_color
@item_max = $game_party.members.size
for actor in $game_party.members
if actor.index == 0
draw_actor_face(actor, 28, 5)
draw_actor_name(actor, 28, 5)
draw_actor_state(actor, 28, 45)
draw_actor_hp(actor, 16, 80)
draw_actor_mp(actor, 16, 100)
elsif actor.index == 1
draw_actor_face(actor, 180, 5)
draw_actor_name(actor, 180, 5)
draw_actor_state(actor, 180, 45)
draw_actor_hp(actor, 168, 80)
draw_actor_mp(actor, 168, 100)
elsif actor.index == 2
draw_actor_face(actor, 332, 5)
draw_actor_name(actor, 332, 5)
draw_actor_state(actor, 332, 45)
draw_actor_hp(actor, 320, 80)
draw_actor_mp(actor, 320, 100)
elsif actor.index == 3
draw_actor_face(actor, 484, 5)
draw_actor_name(actor, 484, 5)
draw_actor_state(actor, 484, 45)
draw_actor_hp(actor, 472, 80)
draw_actor_mp(actor, 472, 100)
复制代码
效果如下...
Untitled.jpg
(56.28 KB, 下载次数: 26)
下载附件
保存到相册
2010-10-17 22:50 上传
但会卡...
请大师指点指点....
作者:
oikl1268
时间:
2010-10-17 23:00
提示:
作者被禁止或删除 内容自动屏蔽
作者:
Rion幻音
时间:
2010-10-17 23:07
感谢解答...^v^
但变得很卡...怎么回事?
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X3.1