Loading...
Loading...
Use when implementing cheat codes, hidden interactions, or unlockable content based on player input/behavior.
npx skill4agent add thedivergentai/gd-agentic-skills godot-mechanic-secretsinput_sequence_watcher.gdInputEventsequence_matchedinteraction_threshold_trigger.gdthreshold_reachedsecret_persistence_handler.gdConfigFileuser://secrets.cfg# In your Game Manager or Player Controller
@onready var cheat_watcher = $InputSequenceWatcher
func _ready():
# Define UP, UP, DOWN, DOWN...
cheat_watcher.sequence = [
"ui_up", "ui_up", "ui_down", "ui_down"
]
cheat_watcher.sequence_matched.connect(_on_cheat_unlocked)
func _on_cheat_unlocked():
print("God Mode Enabled!")
SecretPersistence.unlock_secret("god_mode")Input.is_action_just_pressed_processsettings.cfguser://secrets.cfg