加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
# 昼夜 case (Graphics.frame_count / Graphics.frame_rate)%480 when 0...80 $game_screen.start_tone_change($day, 20) #中午 $game_variables[5] = 1 when 160...240 $game_screen.start_tone_change($dusk, 20) #傍晚 $game_variables[5] = 2 when 240...360 $game_screen.start_tone_change($night, 20) #夜间 $game_variables[5] = 3 when 360...480 $game_screen.start_tone_change($morn, 20) #早晨 $game_variables[5] = 0 end
# 昼夜
case (Graphics.frame_count / Graphics.frame_rate)%480
when 0...80
$game_screen.start_tone_change($day, 20) #中午
$game_variables[5] = 1
when 160...240
$game_screen.start_tone_change($dusk, 20) #傍晚
$game_variables[5] = 2
when 240...360
$game_screen.start_tone_change($night, 20) #夜间
$game_variables[5] = 3
when 360...480
$game_screen.start_tone_change($morn, 20) #早晨
$game_variables[5] = 0
end
以上是昼夜系统的一段脚本。但是到指定一段时间内。
变量是会改变但地图上的指定事件变量却不会显示,要等场景移动后才有效果。
所以想问问怎么样才能立即有效果呢?
|