pause menu
This commit is contained in:
parent
89acf97f69
commit
4f6a5bc90c
8 changed files with 114 additions and 15 deletions
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue