forked from team-sg/hero-mark-2
fixed bug where you could pause and go to debug level select durinh game over slowdown
This commit is contained in:
parent
b0d4bff070
commit
328dd06a1d
2 changed files with 4 additions and 1 deletions
|
@ -55,7 +55,8 @@ func _physics_process(delta):
|
|||
Game.change_map(load("res://maps/test_room.tscn"))
|
||||
#Debug 1
|
||||
if Input.is_action_just_pressed("debug_1"):
|
||||
Game.change_map(load("res://maps/level_select.tscn"))
|
||||
if Game.can_pause:
|
||||
Game.change_map(load("res://maps/level_select.tscn"))
|
||||
#Debug 2
|
||||
if Input.is_action_just_pressed("debug_2"):
|
||||
Game.freeze_frame(1.0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue