Skip to content

Commit

Permalink
wait between each action when chaining action multiple times
Browse files Browse the repository at this point in the history
  • Loading branch information
gvrocksnow authored and Naros committed Sep 17, 2023
1 parent db147c4 commit 0ee6ec3
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ func _init():

func execute(context: OrchestrationExecutionContext) -> Variant:
var action_name = context.get_attribute("action_name")
while not Input.is_action_pressed(action_name):
while not Input.is_action_just_pressed(action_name):
await Orchestrator.get_tree().process_frame
await Orchestrator.get_tree().process_frame
return context.get_output_target_node_id(0)


Expand All @@ -38,7 +39,7 @@ func create_ui(attributes: OrchestratorDictionary, scene_node: Node) -> void:
input_event_action_name.text = _action_name

var label = Label.new()
label.text = "if InputEventAction.pressed"
label.text = "if InputEventAction.justpressed"

var row = HBoxContainer.new()
row.add_child(label)
Expand Down

0 comments on commit 0ee6ec3

Please sign in to comment.