我记得魂之轮回就有这个功能,并不难,首先你要准备一个Loading的图片(应该是JPG格式),并命名为“LOADING”
然后再在Scene_Map约194行(或者全局搜索:切换至战斗画面),
然后在$game_player.straighten语句下面插入这段语句:
$now_loading = Sprite.new $now_loading.bitmap = Cache.system("LOADING.JPG") $now_loading.blend_type = 1
$now_loading = Sprite.new
$now_loading.bitmap = Cache.system("LOADING.JPG")
$now_loading.blend_type = 1
然后再在Scene_Battle约12行(即写着super那行)下面插入这段:
$game_map.screen.start_tone_change(Tone.new(-255,-255,-255,0),1) time = 2 * Graphics.frame_rate # x为秒数 loop do time -= 1 Graphics.update break if time == 0 end $now_loading.dispose if $now_loading != nil
$game_map.screen.start_tone_change(Tone.new(-255,-255,-255,0),1)
time = 2 * Graphics.frame_rate # x为秒数
loop do
time -= 1
Graphics.update
break if time == 0
end
$now_loading.dispose if $now_loading != nil
应该是这样的,不过不是很建议加,因为1是耽误时间,2是这样毫无意义……因为以RM的正常处理速度来讲切换至战斗画面即使显示出图片基本上人眼也分辨不出…… |