def draw_actor_face(actor,x,y)
case actor.id
when 1#此處判斷如果角色ID=1則是頭像1
bitmap = RPG::Cache.picture("頭像名_1")#頭像文件放置位置Graphics\Pictures
else#否則頭像2
bitmap = RPG::Cache.picture("頭像名_2")
end
cw = bitmap.width
ch = bitmap.height
src_rect = Rect.new(0, 0, cw, ch)
self.contents.blt(x , y , bitmap, src_rect)
end
draw_actor_face(actor, x - 70, y-10)
QQ截图20130330052048.png (505.45 KB, 下载次数: 58)
8人战斗,
QQ截图20130330052123.png (150.01 KB, 下载次数: 62)
QQ截图20130330052414.png (162.21 KB, 下载次数: 57)
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |