| 
 
| 赞 | 0 |  
| VIP | 0 |  
| 好人卡 | 2 |  
| 积分 | 1 |  
| 经验 | 7572 |  
| 最后登录 | 2014-7-9 |  
| 在线时间 | 371 小时 |  
 Lv1.梦旅人 
	梦石0 星屑50 在线时间371 小时注册时间2008-12-11帖子47 | 
| 本帖最后由 hsun770916 于 2011-11-29 23:49 编辑 
 复制代码
#==============================================================================
# 本腳本來自www.66RPG.com,使用和轉載請保留此信息
#============================================================================== #==============================================================================
# ** Scene_Logo 1.7 RGSS2
# Script and RGSS2 debugging by Dëvic
# Support and RGSS1 debuggin by Isaacsol
#==============================================================================
class Scene_Logo
  
  # 标准的值: %w( BGM BGS ME SE )
  AudioTypes = %w( BGM BGS ME SE )
  
  def initialize
    # 图像分别替换到Image1 Image2 Image3  可以自己加
    @img = [ 'Image1',  ]
    # Here, set  如果你想拥有一个褪色和淡出效果就输入'true'否则'false'.
    @fade = true
    # 淡入淡出值 (帧)
    # 默认值: 20 
    @fade_delay = 20
    # 在屏幕中等待时间 1/60秒
    # 默认值: 120 frames.
    @delaying = 280
    # 音频的开始三个是:
    # "Audio name", "Volume" 和 "Pitch"; 下一个播放的选项
    # 在 AudioTypes[x]中填入.x的值取: 0: BGM; 1: BGS; 2: SE and 3: ME.
    @audio = [ 'Airship', 100, 100, AudioTypes[0] ]
    main
  end
  def main
    @img.each { |i|
      # 建立新的脚本模块
      sprite = Sprite.new
      #  这个脚本是读取"../Graphics/System/的
      sprite.bitmap = Cache.system(i)
      if AudioTypes
        case @audio[3]
        when 'BGM'
          Audio.bgm_play("Audio/BGM/#{@audio[0]}", @audio[1], @audio[2])
        when 'BGS'
          Audio.bgs_play("Audio/BGS/#{@audio[0]}", @audio[1], @audio[2])
        when 'ME'
          Audio.me_play("Audio/ME/#{@audio[0]}", @audio[1], @audio[2])
        when 'SE'
          Audio.se_play("Audio/SE/#{@audio[0]}", @audio[1], @audio[2])
        end
      end
      Graphics.transition
      Graphics.fadein(@fade_delay) if @fade == true
      Graphics.wait(@delaying)
      Graphics.fadeout(@fade_delay) if @fade == true
      sprite.dispose
      Graphics.freeze
     }
  end
end
#这里是更改Scene_Title 模块的
class Scene_Title
  alias old_start start
  def start
    Scene_Logo.new
    old_start
  end
end
#==============================================================================
# 本腳本來自www.66RPG.com,使用和轉載請保留此信息
#==============================================================================
 | 
 |