本帖最后由 幽默 于 2013-1-25 05:46 编辑
差不多明白LZ的意思了,试试这个吧,不知道有没有达到LZ要求。
class Scene_Map < Scene_Base def pre_battle_scene Graphics.update Graphics.freeze @spriteset.dispose_characters BattleManager.save_bgm_and_bgs Audio.bgm_play("Audio/SE/文件名") time = 2 * Graphics.frame_rate #SE播放秒数 loop do time -= 1 Graphics.update break if time == 0 end BattleManager.play_battle_bgm Sound.play_battle_start end end
class Scene_Map < Scene_Base
def pre_battle_scene
Graphics.update
Graphics.freeze
@spriteset.dispose_characters
BattleManager.save_bgm_and_bgs
Audio.bgm_play("Audio/SE/文件名")
time = 2 * Graphics.frame_rate #SE播放秒数
loop do
time -= 1
Graphics.update
break if time == 0
end
BattleManager.play_battle_bgm
Sound.play_battle_start
end
end
将音频文件名代入,再设置好秒数就可以了。(幽默脚本渣,见笑了) |