查看: 1511|回复: 2

谁可以帮我改下经验槽

  [复制链接]
头像被屏蔽

月

梦石
0
星屑
50
在线时间
0 小时
注册时间
2008-1-26
回帖
1437
发表于 2008-1-30 23:23:37 | 显示全部楼层 |阅读模式
提示: 作者被禁止或删除 内容自动屏蔽
签名被屏蔽

B

梦石
0
星屑
50
在线时间
26 小时
注册时间
2007-8-26
回帖
3622
发表于 2008-1-31 00:11:16 | 显示全部楼层
<<_END_
    ☆图片SP、HP的描画  V1.5     
     by 逐月   

_END_

#描画HP槽
def HP (actor,x,y)         
@bitmap3 = Bitmap.new("Graphics/Pictures/血槽/底")
@src_rect3 = Rect.new(0,0,@bitmap3.width, @bitmap3.height)
self.contents.blt(x,y, @bitmap3, @src_rect3)
#HP显示
@bitmap3 = Bitmap.new("Graphics/Pictures/血槽/hp")
w3 = @bitmap3.width * actor.hp/actor.maxhp
@src_rect3 = Rect.new(0,0,w3, @bitmap3.height)
self.contents.blt(x+4,y+2, @bitmap3, @src_rect3)
end
#描画SP槽
def SP (actor,x,y)
@bitmap1 = Bitmap.new("Graphics/Pictures/血槽/底")
@src_rect1 = Rect.new(0,0,@bitmap1.width, @bitmap1.height)
self.contents.blt(x,y, @bitmap1, @src_rect1)
#SP显示           
@bitmap1 = Bitmap.new("Graphics/Pictures/血槽/sp")
w1 = @bitmap1.width * actor.sp/actor.maxsp
@src_rect1 = Rect.new(0,0,w1, @bitmap1.height)
self.contents.blt(x+4,y+2, @bitmap1, @src_rect1)
end

#描画exp槽
def exp (actor,x,y)
@bitmap4 = Bitmap.new("Graphics/Pictures/血槽/底")
@src_rect4 = Rect.new(0,0,@bitmap4.width, @bitmap4.height)
self.contents.blt(x,y, @bitmap4, @src_rect4)
#exp显示           
@bitmap4 = Bitmap.new("Graphics/Pictures/血槽/exp")
w4 = @bitmap4.width * actor.exp/actor.next_exp
@src_rect4 = Rect.new(0,0,w4, @bitmap4.height)
self.contents.blt(x+4,y+2, @bitmap4, @src_rect4)
end

系统信息:本贴由楼主认可为正确答案,66RPG感谢您的热情解答~
回复

使用道具 举报

头像被屏蔽

月

梦石
0
星屑
50
在线时间
0 小时
注册时间
2008-1-26
回帖
1437
 楼主| 发表于 2008-1-31 00:23:07 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
签名被屏蔽
回复

使用道具 举报

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

本版积分规则

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

在本版发帖返回顶部