s = $game_map.effect_surface
s = $game_map.effect_surface
这句本身只是将 $game_map.effect_surface 代入 s 这个变量,并没有打开什么夜间模式啊..
下面是脚本里关于effect_surface的说明,或者对你有用
#------------------------------------------------------------------------------- # * Instructions - 4. Use the effect's surface! #------------------------------------------------------------------------------- # The Awesome Light Effects draws the effects on a surface. In order to make # the effects visible, the effect's surface MUST be visible. The Effect's # Surface is initialized with it's opacity set to zero. You can call the # following commands: # # s = $game_map.effect_surface # Gets the Effect's Surface into a variable # # s.set_color(r,g,b) # Changes the Effect's Surface color instantly, where: # r => red level; # g => green level; # b => blue level; # # s.set_alpha(a) # Changes the Effect's Surface opacity instantly to a. # # s.change_color(time,r,g,b) # Changes the Effect's Surface color ONLY in a certain time, where: # time => The change's time (frames); # r => red level; # g => green level; # b => blue level; # # s.change_color(time,r,g,b,a) # Changes the Effect's Surface color and it's opacity in a certain time, where: # time => The change's time (frames); # r => red level; # g => green level; # b => blue level; # a => opacity # # s.change_alpha(time,a) # Changes the Effect's Surface opacity in a certain time, where: # time => The change's time (frames); # a => opacity
#-------------------------------------------------------------------------------
# * Instructions - 4. Use the effect's surface!
#-------------------------------------------------------------------------------
# The Awesome Light Effects draws the effects on a surface. In order to make
# the effects visible, the effect's surface MUST be visible. The Effect's
# Surface is initialized with it's opacity set to zero. You can call the
# following commands:
#
# s = $game_map.effect_surface
# Gets the Effect's Surface into a variable
#
# s.set_color(r,g,b)
# Changes the Effect's Surface color instantly, where:
# r => red level;
# g => green level;
# b => blue level;
#
# s.set_alpha(a)
# Changes the Effect's Surface opacity instantly to a.
#
# s.change_color(time,r,g,b)
# Changes the Effect's Surface color ONLY in a certain time, where:
# time => The change's time (frames);
# r => red level;
# g => green level;
# b => blue level;
#
# s.change_color(time,r,g,b,a)
# Changes the Effect's Surface color and it's opacity in a certain time, where:
# time => The change's time (frames);
# r => red level;
# g => green level;
# b => blue level;
# a => opacity
#
# s.change_alpha(time,a)
# Changes the Effect's Surface opacity in a certain time, where:
# time => The change's time (frames);
# a => opacity
|