Project1

标题: 如何加速渐变速度 [打印本页]

作者: qq295268654    时间: 2012-8-20 17:29
标题: 如何加速渐变速度
显示图片的渐变速度如何加快dsu_plus_rewardpost_czw
作者: bbaugle    时间: 2012-8-20 18:41
  1. #==============================================================================
  2. # ■ Scene_Map
  3. #------------------------------------------------------------------------------
  4. #  处理地图画面的类。
  5. #==============================================================================

  6. class Scene_Map
  7.   #--------------------------------------------------------------------------
  8.   # ● 刷新画面
  9.   #--------------------------------------------------------------------------
  10.   alias old_update_bbaugle update
  11.   def update
  12.     # 处理过渡中的情况下
  13.     if $game_temp.transition_processing
  14.       # 清除过渡处理中标志
  15.       $game_temp.transition_processing = false
  16.       # 执行过渡
  17.       if $game_temp.transition_name == ""
  18.         d = $渐变速度 == nil ? 20 : $渐变速度
  19.         $渐变速度 = nil
  20.         Graphics.transition(d)
  21.       else
  22.         d = $渐变速度 == nil ? 40 : $渐变速度
  23.         $渐变速度 = nil
  24.         Graphics.transition(d, "Graphics/Transitions/" +
  25.           $game_temp.transition_name)
  26.       end
  27.     end
  28.     old_update_bbaugle
  29.   end
  30. end
复制代码
在事件中用脚本 $渐变速度 = n
n为帧速
即可改变图片渐变速度




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