Project1

标题: 如何在夜晚环境下战斗画面调亮 [打印本页]

作者: zsqylmmdll    时间: 2018-12-18 10:45
标题: 如何在夜晚环境下战斗画面调亮
在下用事件--更改画面色调做出了晚上的氛围,但战斗时画面也变暗了,如何使战斗时画面以及背景变亮,结束战斗后画面变暗?还望各位大佬不吝赐教,如果要用到脚本的话麻烦发具体教程,多谢。
作者: KB.Driver    时间: 2018-12-18 11:10


RUBY 代码复制
  1. class Game_Troop
  2.   #--------------------------------------------------------------------------
  3.   # ● 初始化画面的色调
  4.   #--------------------------------------------------------------------------
  5.   def init_screen_tone
  6.     $last_tone = $game_map.screen.tone
  7.     @screen.start_tone_change(Tone.new, 0) if $game_map
  8.   end
  9. end
  10.  
  11. class Scene_Battle
  12.   #--------------------------------------------------------------------------
  13.   # ● 结束处理
  14.   #--------------------------------------------------------------------------
  15.   alias cld99_terminate terminate
  16.   def terminate
  17.     $game_map.screen.start_tone_change($last_tone,0) if $last_tone
  18.     $last_tone = nil
  19.     cld99_terminate
  20.   end
  21. end

作者: zsqylmmdll    时间: 2018-12-18 16:15
大佬威武!
但为何在游戏测试时背景仍无法改变?
如图:
这是在下预计的效果
这是真实的效果

作者: zsqylmmdll    时间: 2018-12-19 07:34
[quote]zsqylmmdll 发表于 2018-12-18 16:15
因为你没有指定战斗背景图。明雷在事件页第三页设置战斗背景,暗雷在地图处指定。
成功了,大佬果然厉害!多谢!




欢迎光临 Project1 (https://rpg.blue/) Powered by Discuz! X3.1