赞 | 0 |
VIP | 0 |
好人卡 | 0 |
积分 | 1 |
经验 | 8878 |
最后登录 | 2014-9-20 |
在线时间 | 87 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 50
- 在线时间
- 87 小时
- 注册时间
- 2009-6-12
- 帖子
- 383
|
def SP(actor,x,y)
@bitap1 =Bitmap.new("Graphics/Pictures/SP2")
@src_rect1 = Rect.new(0, 0, @bitmap1.width, @bitmap1.height)
self.contents.blt(x, y, @bitmap1, @src_rect1)
@bitap2 =Bitmap.new("Graphics/Pictures/SP")
w2 = @bitmap2.width * actor.sp/actor.maxsp
@src_rect2 = Rect.new(0, 0, w2, @bitmap2.height)
self.contents.blt(x+1, y+1, @bitmap2, @src_rect2)
end
检查一下,相对了么
马虎~ 系统信息:本贴由楼主认可为正确答案,66RPG感谢您的热情解答~ |
|