Block all input other than E/Space when OldComputer is up. Make it so that exiting out of OldComputer does not jump.
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
1 parent
954fd873bd
commit
cb1b579544
1 file changed
+4
-5
+4
-5
@@ -119,8 +119,10 @@ func _process(delta: float) -> void:
|
|||||||
if Input.is_action_just_released("restart") or (Input.is_action_pressed("controller_restart_left") and Input.is_action_pressed("controller_restart_right")):
|
if Input.is_action_just_released("restart") or (Input.is_action_pressed("controller_restart_left") and Input.is_action_pressed("controller_restart_right")):
|
||||||
get_tree().reload_current_scene()
|
get_tree().reload_current_scene()
|
||||||
|
|
||||||
if Input.is_action_just_released("interact"):
|
if %OldComputer.visible:
|
||||||
%OldComputer.close()
|
if Input.is_action_just_released("interact") or Input.is_action_just_released("jump"):
|
||||||
|
%OldComputer.close()
|
||||||
|
return
|
||||||
|
|
||||||
if Input.is_action_just_pressed("jump"):
|
if Input.is_action_just_pressed("jump"):
|
||||||
%OldComputer.close()
|
%OldComputer.close()
|
||||||
@@ -140,9 +142,6 @@ func _process(delta: float) -> void:
|
|||||||
#velocity.y = 0
|
#velocity.y = 0
|
||||||
#velocity.x = 0
|
#velocity.x = 0
|
||||||
|
|
||||||
if %OldComputer.visible:
|
|
||||||
return
|
|
||||||
|
|
||||||
var direction = Input.get_axis("move_left","move_right")
|
var direction = Input.get_axis("move_left","move_right")
|
||||||
|
|
||||||
if direction < 0:
|
if direction < 0:
|
||||||
|
|||||||
Reference in new issue
Block a user