Refactored and improved transition animations

This commit is contained in:
Maruno17
2021-08-20 21:39:20 +01:00
parent 9c5c3c77ed
commit 41ce9309d7
7 changed files with 1006 additions and 1280 deletions

View File

@@ -85,7 +85,7 @@ class Scene_Map
createSpritesets
if $game_temp.transition_processing
$game_temp.transition_processing = false
Graphics.transition(20)
Graphics.transition
end
$game_map.autoplay
Graphics.frame_reset
@@ -172,7 +172,7 @@ class Scene_Map
if $game_temp.transition_processing
$game_temp.transition_processing = false
if $game_temp.transition_name == ""
Graphics.transition(20)
Graphics.transition
else
Graphics.transition(40, "Graphics/Transitions/" + $game_temp.transition_name)
end
@@ -213,7 +213,7 @@ class Scene_Map
def main
createSpritesets
Graphics.transition(20)
Graphics.transition
loop do
Graphics.update
Input.update
@@ -223,7 +223,7 @@ class Scene_Map
Graphics.freeze
disposeSpritesets
if $game_temp.to_title
Graphics.transition(20)
Graphics.transition
Graphics.freeze
end
end

File diff suppressed because it is too large Load Diff

View File

@@ -88,7 +88,8 @@ def pbBattleAnimation(bgm=nil,battletype=0,foe=nil)
end
# Play main animation
Graphics.freeze
Graphics.transition(Graphics.frame_rate*1.25,sprintf("Graphics/Transitions/%s",anim))
anim = "battle4"
Graphics.transition(25, sprintf("Graphics/Transitions/%s", anim))
viewport.color = Color.new(0,0,0,255) # Ensure screen is black
# Slight pause after animation before starting up the battle scene
(Graphics.frame_rate/10).times do

View File

@@ -35,7 +35,7 @@ class ButtonEventScene < EventScene
addLabelForScreen(4, 134, 196, 352, _INTL("Press to open the Ready Menu, where registered items and available field moves can be used. (Default: D)"))
set_up_screen(@current_screen)
Graphics.transition(20)
Graphics.transition
# Go to next screen when user presses USE
onCTrigger.set(method(:pbOnScreenEnd))
end
@@ -67,7 +67,7 @@ class ButtonEventScene < EventScene
if @current_screen >= last_screen
# End scene
Graphics.freeze
Graphics.transition(20, "fadetoblack")
Graphics.transition(8, "fadetoblack")
scene.dispose
else
# Next screen

View File

@@ -76,7 +76,7 @@ IceGod64<s>SoundSpawn
Jacob O. Wobbrock<s>the__end
KitsuneKouta<s>Venom12
Lisa Anthony<s>Wachunga
Luka S.J.<s>
Luka S.J.<s>
and everyone else who helped out
"mkxp-z" by:
@@ -189,7 +189,7 @@ _END_
pbSEStop
pbBGMFade(2.0)
pbBGMPlay(BGM)
Graphics.transition(20)
Graphics.transition
loop do
Graphics.update
Input.update
@@ -198,7 +198,7 @@ _END_
end
pbBGMFade(2.0)
Graphics.freeze
Graphics.transition(20, "fadetoblack")
Graphics.transition(8, "fadetoblack")
@background_sprite.dispose
@credit_sprites.each { |s| s.dispose if s }
text_viewport.dispose

View File

@@ -567,17 +567,17 @@ def pbLoadRpgxpScene(scene)
Graphics.freeze
oldscene.disposeSpritesets
visibleObjects = pbHideVisibleObjects
Graphics.transition(20)
Graphics.transition
Graphics.freeze
while $scene && !$scene.is_a?(Scene_Map)
$scene.main
end
Graphics.transition(20)
Graphics.transition
Graphics.freeze
$scene = oldscene
$scene.createSpritesets
pbShowObjects(visibleObjects)
Graphics.transition(20)
Graphics.transition
end
def pbChooseLanguage

View File

@@ -33,7 +33,7 @@ def mainFunctionDebug
Graphics.freeze
$scene = pbCallTitle
$scene.main until $scene.nil?
Graphics.transition(20)
Graphics.transition
rescue Hangup
pbPrintException($!) if !$DEBUG
pbEmergencySave