progress
This commit is contained in:
@@ -76,25 +76,6 @@ func add_action(action: Action) -> void:
|
||||
|
||||
sequential_actions.append(action)
|
||||
|
||||
func add_parallel_actions(actions: Array) -> void:
|
||||
# Add a group of actions to run in parallel
|
||||
if state != State.IDLE:
|
||||
print("Warning: Cannot add actions while cutscene is running")
|
||||
return
|
||||
|
||||
if actions.size() == 0:
|
||||
return
|
||||
|
||||
# Create a parallel action group
|
||||
var group = {
|
||||
"actions": actions,
|
||||
"completed_count": 0,
|
||||
"total_count": actions.size()
|
||||
}
|
||||
|
||||
# Add to sequential actions as a single item
|
||||
sequential_actions.append(group)
|
||||
|
||||
# Internal methods
|
||||
func _process(delta: float) -> void:
|
||||
# Main update loop
|
||||
@@ -120,7 +101,7 @@ func _execute_next_action() -> void:
|
||||
|
||||
var action_item = sequential_actions[action_index]
|
||||
action_index += 1
|
||||
|
||||
print(action_item)
|
||||
# Check if this is a parallel group or single action
|
||||
if typeof(action_item) == TYPE_DICTIONARY and action_item.has("actions"):
|
||||
# This is a parallel group
|
||||
|
||||
Reference in New Issue
Block a user