| 赞 | 0  | 
 
| VIP | 0 | 
 
| 好人卡 | 0 | 
 
| 积分 | 1 | 
 
| 经验 | 20825 | 
 
| 最后登录 | 2013-3-5 | 
 
| 在线时间 | 3 小时 | 
 
 
 
 
 
Lv1.梦旅人 
	- 梦石
 - 0 
 
        - 星屑
 - 50 
 
        - 在线时间
 - 3 小时
 
        - 注册时间
 - 2008-8-10
 
        - 帖子
 - 243
 
 
 
 | 
	
加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员  
 
x
 
HPSP代码如下 
def HP(actor,x,y) 
   
    @bitmap1 = Bitmap.new("Graphics/Pictures/HP1.png") 
    @src_rect1 = Rect.new(0, 0, @bitmap1.width, @bitmap1.height) 
    self.contents.blt(x, y, @bitmap1, @src_rect1) 
     
    @bitmap2 = Bitmap.new("Graphics/Pictures/HP2.png") 
    h1 = @bitmap2.height * actor.hp / actor.maxhp 
    @src_rect2 = Rect.new(0, 0, @bitmap2.width, h1) #@bitmap2.height) 
    self.contents.blt(x + 1, y + 1, @bitmap2, @src_rect2) 
 
end 
   
def SP(actor,x,y) 
   
    @bitmap1 = Bitmap.new("Graphics/Pictures/SP1.png") 
    @src_rect1 = Rect.new(0, 0, @bitmap1.width, @bitmap1.height) 
    self.contents.blt(x, y, @bitmap1, @src_rect1) 
     
    @bitmap2 = Bitmap.new("Graphics/Pictures/SP2.png") 
    h2 = @bitmap2.height * actor.sp / actor.maxsp 
    @src_rect2 = Rect.new(0, 0, @bitmap2.width, h2) #@bitmap2.height) 
    self.contents.blt(x + 1, y + 1, @bitmap2, @src_rect2) 
 
end   
 
 
 
 
请问哪位高手帮帮忙,问题如上 |   
 
 
 
 |