查看: 2133|回复: 2

[已经过期] 怎么增加boss血槽

  [复制链接]
梦石
0
星屑
50
在线时间
43 小时
注册时间
2010-12-8
回帖
33
发表于 2011-1-11 00:13:59 | 显示全部楼层 |阅读模式

加入我们,或者,欢迎回来。

您需要 登录 才可以下载或查看,没有账号?注册会员

×
比如我在战斗中(原本的RMX的战斗风)想添加BOSS的血槽怎么加
然后我想boss要打几次才死,想加个血条在屏幕中间,怎么显示?
【星翰】游戏工作室
官方网站:www.xhgame.tk
官方论坛:bbs.xhgame.tk
大量招募成员,工资按件付款

夜天の主

梦石
0
星屑
136
在线时间
1553 小时
注册时间
2008-4-13
回帖
2301

开拓者第4届短篇游戏比赛亚军

发表于 2011-1-11 00:44:01 | 显示全部楼层
传送门一枚附上供参考,如果对这个效果不满意可以自己搜索“敌人血条”~
http://rpg.blue/forum.php?mod=vi ... A%E8%A1%80%E6%9D%A1
回复

使用道具 举报

梦石
0
星屑
50
在线时间
25 小时
注册时间
2008-11-8
回帖
112
发表于 2011-1-15 23:15:09 | 显示全部楼层
  1. #==============================================================================

  2. class Window_Help < Window_Base
  3.   def set_enemy(actor)
  4.     self.contents.clear
  5.     draw_actor_name(actor, 4, 0)
  6.     draw_actor_state(actor, 140, 0)
  7.     carol3_draw_hp_bar(actor, 284, 0)
  8.     carol3_draw_sp_bar(actor, 460, 0)
  9.     @text = nil
  10.     self.visible = true
  11.   end
  12.   def carol3_draw_hp_bar(actor, x, y, width = 128) #宽度可调
  13.     self.contents.font.color = system_color
  14.     self.contents.fill_rect(x-1, y+17, width+2,6, Color.new(0, 0, 0, 255))
  15.     w = width * actor.hp / actor.maxhp
  16.     self.contents.fill_rect(x, y+18, w,1, Color.new(255, 96, 96, 255))
  17.     self.contents.fill_rect(x, y+19, w,1, Color.new(255, 0, 0, 255))
  18.     self.contents.fill_rect(x, y+20, w,1, Color.new(128, 0, 0, 255))
  19.     self.contents.fill_rect(x, y+21, w,1, Color.new(0, 0, 0, 255))
  20.     self.contents.draw_text(x,y,128,32,$data_system.words.hp,1)
  21.     self.contents.font.color = normal_color
  22.   end
  23.   def carol3_draw_sp_bar(actor, x, y, width = 128)
  24.     self.contents.font.color = system_color
  25.     self.contents.fill_rect(x-1, y+17, width+2,6, Color.new(0, 0, 0, 255))
  26.     w = width * actor.sp / actor.maxsp
  27.     self.contents.fill_rect(x, y+18, w,1, Color.new(128, 255, 255, 255))
  28.     self.contents.fill_rect(x, y+19, w,1, Color.new(0, 255, 255, 255))
  29.     self.contents.fill_rect(x, y+20, w,1, Color.new(0, 192, 192, 255))
  30.     self.contents.fill_rect(x, y+21, w,1, Color.new(0, 128, 128, 255))
  31.     self.contents.draw_text(x,y,128,32,$data_system.words.sp,1)
  32.     self.contents.font.color = normal_color
  33.   end
  34. end
复制代码
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部