你开个新工程放进这个脚本就知道了,这脚本有两个 # ○ CPメーター の描画 部分,第一个是敌人的,第二个是角色的 |
搜索 ○ CPメーター の描画 比如你要把敌人的CP条向右平移100,就这么改: #-------------------------------------------------------------------------- # ○ CPメーター の描画 #-------------------------------------------------------------------------- def draw_actor_cp_meter(actor, x, y, width = 156, type = 0) self.contents.font.color = system_color self.contents.fill_rect(x-1+100, y+27, width+2,6, Color.new(0, 0, 0, 255)) if actor.cp == nil actor.cp = 0 end w = width * [actor.cp,65535].min / 65535 self.contents.fill_rect(x+100, y+28, w,1, Color.new(255, 255, 128, 255)) self.contents.fill_rect(x+100, y+29, w,1, Color.new(255, 255, 0, 255)) self.contents.fill_rect(x+100, y+30, w,1, Color.new(192, 192, 0, 255)) self.contents.fill_rect(x+100, y+31, w,1, Color.new(128, 128, 0, 255)) end end |
脚本里有坐标的四个数,你改改 |
站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作
GMT+8, 2024-6-11 01:16
Powered by Discuz! X3.1
© 2001-2013 Comsenz Inc.