add 2-stage
This commit is contained in:
parent
9c55a8715a
commit
8e347e59e9
53 changed files with 2011 additions and 11 deletions
|
@ -230,8 +230,9 @@ func _physics_process(_delta: float) -> void:
|
|||
func _input(event: InputEvent) -> void:
|
||||
if event.is_action_pressed("freeroam_open_curtains"):
|
||||
for curtain in FreeRoamMaps.MapIndex[get_node("../").current_map]["curtains"]:
|
||||
get_node("../../" + curtain + "/AnimationPlayer").speed_scale = 0.2
|
||||
get_node("../../" + curtain + "/AnimationPlayer").play("Up")
|
||||
for curtain_movement in FreeRoamMaps.MapIndex[get_node("../").current_map]["curtains"][curtain]:
|
||||
get_node("../../" + curtain + "/AnimationPlayer").speed_scale = 0.2
|
||||
get_node("../../" + curtain + "/AnimationPlayer").play(curtain_movement)
|
||||
if (transport_enabled):
|
||||
if event.is_action_pressed("freeroam_transport_play_pause"):
|
||||
if (playing): _on_pause_button_pressed()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue