| 赞 | 0 |
| VIP | 0 |
| 好人卡 | 0 |
| 积分 | 1 |
| 经验 | 2574 |
| 最后登录 | 2016-10-9 |
| 在线时间 | 12 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 50
- 在线时间
- 12 小时
- 注册时间
- 2007-8-1
- 帖子
- 243
|
6楼

楼主 |
发表于 2007-8-7 03:35:58
|
只看该作者
不好意思啊,梅芙女士,请问我应该粘哪里,是:def refresh
self.contents.clear
@item_max = $game_party.actors.size
for i in 0...$game_party.actors.size
actor = $game_party.actors
actor_x = i * 150+4
draw_actor_name(actor, actor_x, 0)
HP(actor,actor_x,80)
draw_actor_hp(actor, actor_x, 32, 120)的下面,
还是#--------------------------------------------------------------------------
#●自制HP
#--------------------------------------------------------------------------
def HP(actor,x,y)
@bitmap1=Bitmap.new("Graphics/pictures/HP1")
@src_rect1 = Rect.new(0, 0, @bitmap1.width, @bitmap1.height)
self.contents.blt(x+62, y, @bitmap1, @src_rect1)
@bitmap2=Bitmap.new("Graphics/pictures/HP2")
w2= @bitmap2.width * actor.hp/actor.maxhp
@src_rect2 = Rect.new(0, 0, w2, @bitmap2.height)
self.contents.blt(x+85, y+8, @bitmap2, @src_rect2)的下面,还是其它什么地方,请
指教.
|
|