| 
 
| 赞 | 0 |  
| VIP | 0 |  
| 好人卡 | 0 |  
| 积分 | 1 |  
| 经验 | 1543 |  
| 最后登录 | 2013-2-18 |  
| 在线时间 | 51 小时 |  
 Lv1.梦旅人 
	梦石0 星屑50 在线时间51 小时注册时间2010-10-7帖子58 | 
| 回复 后知后觉 的帖子 
 ---------------------------------------
 我按照教程写成了这样
 
 def HP (actor,x,y,w)
 
 
 @hpbar.bitmap=Bitmap.new ("Graphics/Pictures/HPdi.png")
 
 @src_hpbar_rect = Rect.new(0, 0, @hpbar.bitmap.width, @hpbar.bitmap.heigth)
 
 self.contents.blt(x , 32 , @hpbar.bitmap , @src_hpbar_rect )
 
 w1 = @hp.bitmap.width * actor.hp/actor.maxhp
 
 @hp.bitmap=Bitmap.new("Graphics/Pictures/HP.png")
 @src_hp_rect= Rect.new(0, 0, w1, @hp_bitmap.heigth)
 self.contents.blt(x+1, y+1, @hp_bitmap, @src_hp_rect)
 end
 
 def MP (actor,x,y,w)
 
 
 @mpbar.bitmap=Bitmap.new ("Graphics/Pictures/MPdi.png")
 
 @src_mpbar_rect = Rect.new(0, 0, @mpbar.bitmap.width, @mpbar.bitmap.heigth)
 
 self.contents.blt(x , 32 , @mpbar.bitmap , @src_mpbar_rect )
 
 w2 = @mp.bitmap.width * actor.mp/actor.maxmp
 
 @mp.bitmap=Bitmap.new("Graphics/Pictures/MP.png")
 @src_mp_rect= Rect.new(0, 0, w2, @mp_bitmap.heigth)
 self.contents.blt(x+1, y+1, @mp_bitmap, @src_mp_rect)
 end
 
 
 然后怎么弄到地图画面去…
 还要把以上内容写到一个新类再在scene_map插进@**=**。new 、 @**.dispose  、**.update 吗?
 | 
 |