Project1
标题:
在左下方显示HP和MP
[打印本页]
作者:
zhanghao
时间:
2008-11-19 05:03
标题:
在左下方显示HP和MP
要有进度条和数字 [LINE]1,#dddddd[/LINE]
版务信息:本贴由楼主自主结贴~
作者:
沉影不器
时间:
2008-11-19 05:27
提示:
作者被禁止或删除 内容自动屏蔽
作者:
雪流星
时间:
2008-11-19 06:06
class Scene_Map < Scene_Base
alias hpmpwindow_start start
def start
hpmpwindow_start
@hpmpwindow = Window_Base.new(0, 336, 152, 80)
end
alias hpmpwindow_update update
def update
actor = $game_party.members[0]
if @temp_hp != actor.hp or @temp_mp != actor.mp
@hpmpwindow.contents.clear
@hpmpwindow.draw_actor_hp(actor, 0, 0)
@hpmpwindow.draw_actor_mp(actor, 0, 24)
@temp_hp = actor.hp
@temp_mp = actor.mp
end
@hpmpwindow.update
hpmpwindow_update
end
alias hpmpwindow_terminate terminate
def terminate
@hpmpwindow.dispose
hpmpwindow_terminate
end
end
复制代码
这样吗? [LINE]1,#dddddd[/LINE]
系统信息:本贴由楼主认可为正确答案,66RPG感谢您的热情解答~
作者:
zhanghao
时间:
2008-11-20 01:46
二楼的,对不起,我没说明白
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X3.1