mirror of
https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
synced 2025-10-22 15:38:14 +00:00
made sub level transitions a bit smoother
This commit is contained in:
@@ -304,16 +304,16 @@ func transition_to_scene(scene_path := "") -> void:
|
||||
|
||||
|
||||
|
||||
func do_fake_transition() -> void:
|
||||
func do_fake_transition(duration := 0.2) -> void:
|
||||
if fade_transition:
|
||||
$Transition/AnimationPlayer.play("FadeIn")
|
||||
await $Transition/AnimationPlayer.animation_finished
|
||||
await get_tree().create_timer(0.2, false).timeout
|
||||
await get_tree().create_timer(duration, false).timeout
|
||||
$Transition/AnimationPlayer.play_backwards("FadeIn")
|
||||
else:
|
||||
%TransitionBlock.modulate.a = 1
|
||||
$Transition.show()
|
||||
await get_tree().create_timer(0.25, false).timeout
|
||||
await get_tree().create_timer(duration + 0.05, false).timeout
|
||||
$Transition.hide()
|
||||
|
||||
func freeze_screen() -> void:
|
||||
|
Reference in New Issue
Block a user