def draw_face (actor, x, y)
bitmap = RPG::Cache.battler(actor.battler_name + "f", actor.battler_hue) #把头像用“战斗图名+f”的形式命名放在battler文件夹下
cw = bitmap.width
ch = bitmap.height
src_rect = Rect.new(0, 0, cw, ch)
self.contents.blt(x , y, bitmap, src_rect) #x,y 坐标自己调整
end
def draw_face(actor, x, y)
#把头像用“战斗图名+f”的形式命名放在battler文件夹下
bitmap = RPG::Cache.battler(actor.battler_name + "f", actor.battler_hue)
cw = bitmap.width
ch = bitmap.height
src_rect = Rect.new(0, 0, cw, ch)
self.contents.blt(x , y, bitmap, src_rect)
end
以下引用禾西于2008-5-10 2:45:15的发言:
很明顯天聖忘記設定參數,連 end 都忘記打
以下引用kakarot于2008-5-10 17:43:54的发言:
哗,太感谢啦~(你家住哪?我过来请你吃饭~^_^)
| 欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |