pause menu

This commit is contained in:
Page Asgardius 2024-06-15 14:11:43 -07:00
parent 89acf97f69
commit 4f6a5bc90c
8 changed files with 114 additions and 15 deletions

View file

@ -25,7 +25,7 @@ func _process(delta):
pass
func _physics_process(delta):
if isvisible.is_on_screen():
if isvisible.is_on_screen() && Global.live != 4:
if direction == null:
position += velocity * delta
else:

View file

@ -18,7 +18,7 @@ func _process(delta):
pass
func _physics_process(delta):
if isvisible.is_on_screen():
if isvisible.is_on_screen() && Global.live != 4:
if direction == null:
position += velocity * delta
else:

View file

@ -18,7 +18,7 @@ func _process(delta):
pass
func _physics_process(delta):
if isvisible.is_on_screen():
if isvisible.is_on_screen() && Global.live != 4:
if direction == null:
position += velocity * delta
else:

View file

@ -61,7 +61,7 @@ func _physics_process(delta):
func _input(event):
if Global.live == 1:
if Input.is_action_pressed("schar"):
if Input.is_action_pressed("schar") && (Input.is_action_just_released("ui_up") || Input.is_action_just_released("ui_down") || Input.is_action_just_released("ui_left") || Input.is_action_just_released("ui_right")):
_charswitch()
if Input.is_action_just_pressed("shoot") && !bpress && Global.live == 1:
bpress = true