加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
本帖最后由 黑米馒头 于 2022-6-10 22:00 编辑
下面这个脚本是VX上面的,功能为,移动场所的时候不淡出淡入,看起来很丝滑,有没大神帮忙改成支持XP的~~
class Scene_Map < Scene_Base def update_transfer_player return unless $game_player.transfer? if $transfer_location_fadeout @spriteset.dispose # Dispose of sprite set $game_player.perform_transfer # Execute player transfer $game_map.autoplay # Automatically switch BGM and BGS $game_map.update @spriteset = Spriteset_Map.new # Recreate sprite set else fade = (Graphics.brightness > 0) fadeout(30) if fade @spriteset.dispose # Dispose of sprite set $game_player.perform_transfer # Execute player transfer $game_map.autoplay # Automatically switch BGM and BGS $game_map.update Graphics.wait(15) @spriteset = Spriteset_Map.new # Recreate sprite set fadein(30) if fade end Input.update end end class Game_Interpreter def transfer_fade(tf = true) $transfer_location_fadeout = tf end end
class Scene_Map < Scene_Base
def update_transfer_player
return unless $game_player.transfer?
if $transfer_location_fadeout
@spriteset.dispose # Dispose of sprite set
$game_player.perform_transfer # Execute player transfer
$game_map.autoplay # Automatically switch BGM and BGS
$game_map.update
@spriteset = Spriteset_Map.new # Recreate sprite set
else
fade = (Graphics.brightness > 0)
fadeout(30) if fade
@spriteset.dispose # Dispose of sprite set
$game_player.perform_transfer # Execute player transfer
$game_map.autoplay # Automatically switch BGM and BGS
$game_map.update
Graphics.wait(15)
@spriteset = Spriteset_Map.new # Recreate sprite set
fadein(30) if fade
end
Input.update
end
end
class Game_Interpreter
def transfer_fade(tf = true)
$transfer_location_fadeout = tf
end
end
|