Project1
标题:
如何在地图上显示角色状态的窗口?
[打印本页]
作者:
277297575
时间:
2010-10-27 15:32
标题:
如何在地图上显示角色状态的窗口?
本帖最后由 277297575 于 2010-11-7 11:48 编辑
如何在地图上显示角色状态的窗口? XP有很多,但是VX好像都没怎么有,还是我找不到。。。
有的话发个链接,连同伴的状态也显示的那种。
作者:
ACG中的GAME
时间:
2010-11-7 08:32
我还真没见过连同伴的状态也显示的那种
我只见过显示主角的那种
作者:
小鱼子
时间:
2010-11-7 10:06
也显示同伴?你还看不看地图啦?
作者:
企鹅达达
时间:
2010-11-7 10:09
显示血条的就有现成的,不过没有显示状态的……
class Scene_Map < Scene_Base
alias hpmpwindow_start start
def start
hpmpwindow_start
@hpmpwindow = Window_Base.new(0, 336, 544, 80)
if $game_switches[1] == true
@hpmpwindow.opacity = 255
@hpmpwindow.back_opacity = 200
@hpmpwindow.contents_opacity = 255
else
@hpmpwindow.opacity = 0
@hpmpwindow.back_opacity = 0
@hpmpwindow.contents_opacity = 0
end
@temp_hp =[0,0,0,0]
@temp_mp =[0,0,0,0]
end
alias hpmpwindow_update update
def update
t_flag=0
for i in 0..($game_party.members.size <= 4 ? $game_party.members.size-1: 3)
actor = $game_party.members[i]
if @temp_hp[i] != actor.hp or @temp_mp[i] != actor.mp
t_flag = t_flag + 1
@temp_hp[i] = actor.hp
@temp_mp[i] = actor.mp
end
end
if t_flag >0 #某人hp增减了
@hpmpwindow.contents.clear #清空循环重画所有人的血条
for i in 0..($game_party.members.size <= 4 ? $game_party.members.size-1: 3)
actor = $game_party.members[i]
@hpmpwindow.draw_actor_hp(actor, i*136, 0 , width = 100)
@hpmpwindow.draw_actor_mp(actor, i*136, 24, width = 100)
@hpmpwindow.draw_actor_graphic(actor, i*136+40, 40)
end
t_flag = 0
end
@hpmpwindow.update
hpmpwindow_update
if $game_switches[1] == true
@hpmpwindow.opacity = 255
@hpmpwindow.back_opacity = 200
@hpmpwindow.contents_opacity = 255
else
@hpmpwindow.opacity = 0
@hpmpwindow.back_opacity = 0
@hpmpwindow.contents_opacity = 0
end
end
alias hpmpwindow_terminate terminate
def terminate
@hpmpwindow.dispose
hpmpwindow_terminate
end
end
复制代码
作者:
277297575
时间:
2010-11-7 11:50
这问题已经解决了,其实用事件图片血条比ls的这个脚本的fps要好蛮多,不过还是谢谢。
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X3.1