查看: 1691|回复: 1

[已经解决] 如何加速渐变速度

[复制链接]
梦石
0
星屑
55
在线时间
100 小时
注册时间
2010-7-30
回帖
148
发表于 2012-8-20 17:29:40 | 显示全部楼层 |阅读模式

加入我们,或者,欢迎回来。

您需要 登录 才可以下载或查看,没有账号?注册会员

×
显示图片的渐变速度如何加快

尽头

梦石
0
星屑
119
在线时间
278 小时
注册时间
2010-6-20
回帖
1204
发表于 2012-8-20 18:41:44 | 显示全部楼层
  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为帧速
即可改变图片渐变速度
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部