mirror of
https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
synced 2025-10-22 15:38:14 +00:00
fixed a tiling error, and not being able to skip the challenge "miss.." screen
This commit is contained in:
@@ -344,6 +344,7 @@ func transition_to_scene(scene_path := "") -> void:
|
||||
$Transition/AnimationPlayer.play("RESET")
|
||||
$Transition.hide()
|
||||
transitioning_scene = false
|
||||
transition_finished.emit()
|
||||
|
||||
|
||||
|
||||
|
@@ -21,8 +21,11 @@ func _ready() -> void:
|
||||
func _process(_delta: float) -> void:
|
||||
print(can_continue)
|
||||
if Input.is_action_just_pressed("jump_0") and can_continue:
|
||||
go_back_to_title()
|
||||
can_continue = false
|
||||
if Global.transitioning_scene:
|
||||
await Global.transition_finished
|
||||
await get_tree().create_timer(0.15, false).timeout
|
||||
go_back_to_title()
|
||||
|
||||
|
||||
func go_back_to_title() -> void:
|
||||
|
Reference in New Issue
Block a user