Project1
标题:
關於精英怪物問題
[打印本页]
作者:
e900003
时间:
2015-5-16 19:16
标题:
關於精英怪物問題
如題 我上次發
這個
問精英怪物的部份
怪物已經是精英怪物的時候 怪物的圖片要放大2倍
請問 腳本要怎麼改成那樣效果....
作者:
芯☆淡茹水
时间:
2015-5-16 20:04
试一下这个:
class Sprite_Battler < RPG::Sprite
alias old_update_xr update
def update
if @data_battler != @battler
@data_battler = @battler
if @battler != nil and @battler.is_a?(Game_Enemy)
self.zoom_x = self.zoom_y = @battler.is_by? ? 2 : 1
end
end
old_update_xr
end
end
复制代码
作者:
e900003
时间:
2015-5-16 20:57
芯☆淡茹水 发表于 2015-5-16 20:04
试一下这个:
已測試成功 謝謝你~~~
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X3.1