本帖最后由 莫小兮 于 2010-10-2 19:51 编辑 {:2_33:}晕,你居然还不懂啊,这么多人都没个说到点子上的。显示角色最大HP和当前HP的脚本是 draw_actor_hp这句才对,如果LZ对脚本有所了解的话我想你应该知道怎么用,如果不知道,那就+我吧,沙发忘了说QQ了。 851041550 |
其实我也早有策划做神话,若您有兴趣合作,请加QQ:513212883 |
加了,依然没变 |
回复 keshom 的帖子 self.contents.font.size = 8行了吧,只是告诉你用法又没叫你原封不动复制。。。 |
加了,没反应 #============================================================================== # ■ Window_Base #============================================================================== class Window_Base < Window #-------------------------------------------------------------------------- # ● HP描画 #-------------------------------------------------------------------------- def draw_actor_hp_meter(actor, x, y, width = 156, type = 0) if type == 1 and actor.hp == 0 return end font.size=8 self.contents.font.color = system_color self.contents.fill_rect(x-1, y+27, width+2,6, Color.new(0, 0, 0, 25)) w = width * actor.hp / actor.maxhp self.contents.fill_rect(x, y+28, w,1, Color.new(255, 96, 96, 255)) self.contents.fill_rect(x, y+29, w,1, Color.new(255, 0, 0, 255)) self.contents.fill_rect(x, y+30, w,1, Color.new(128, 0, 0, 255)) self.contents.fill_rect(x, y+31, w,1, Color.new(0, 0, 0, 255)) end |
回复 keshom 的帖子 改字体请在描绘hp(在脚本编辑器里Ctrl+Shift+F搜"HP",找到hp,应该在windows里)前,增加font.size=数字 |
那如何把数字改小一点?还有显示原来生命值的语句是什么? |
站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作
GMT+8, 2025-7-19 12:13
Powered by Discuz! X3.1
© 2001-2013 Comsenz Inc.