class Sprite_Battler alias update_position_for_high_enemy update_position def update_position update_position_for_high_enemy if (dec = bitmap.height - 296) > 0 then self.y += dec end end end
class Sprite_Battler
alias update_position_for_high_enemy update_position
def update_position
update_position_for_high_enemy
if (dec = bitmap.height - 296) > 0 then self.y += dec end
end
end
顺便弄个五行脚本版
class Sprite_Battler # 超高敌人 Y 坐标自适应 alias update_position_for_high_enemy update_position def update_position; update_position_for_high_enemy if (dec = bitmap.height - 296) > 0 then self.y += dec end end;end
class Sprite_Battler # 超高敌人 Y 坐标自适应
alias update_position_for_high_enemy update_position
def update_position; update_position_for_high_enemy
if (dec = bitmap.height - 296) > 0 then self.y += dec end
end;end
|