http://miaowm5.github.io/RMVA-F1 ... _ref_map.html#map03
如果需要战斗途中切换背景
class Spriteset_Battle def change_battleback(back1_name, back2_name) @back1_sprite.bitmap = Cache.battleback1(back1_name) @back2_sprite.bitmap = Cache.battleback2(back2_name) end end class Scene_Battle < Scene_Base def change_battleback(back1_name, back2_name) @spriteset.change_battleback(back1_name, back2_name) end end
class Spriteset_Battle
def change_battleback(back1_name, back2_name)
@back1_sprite.bitmap = Cache.battleback1(back1_name)
@back2_sprite.bitmap = Cache.battleback2(back2_name)
end
end
class Scene_Battle < Scene_Base
def change_battleback(back1_name, back2_name)
@spriteset.change_battleback(back1_name, back2_name)
end
end
把这个脚本加进去
然后再在战斗事件里调用脚本事件
- SceneManager.scene.change_battleback(name1, name2)
复制代码 |