Loading...
Loading...
Use when implementing collection quests, scavenger hunts, or "find all X" objectives.
npx skill4agent add thedivergentai/gd-agentic-skills godot-game-loop-collectioncollection_manager.gdcurrent / targetitem_collected(id)collection_completedcollection_idcollectible_item.gdhidden_item_spawner.gdMarker3DCollisionShape# In a Level Script or Game Mode
@onready var manager = $CollectionManager
func _ready():
manager.start_collection("easter_egg_2024", 10)
manager.collection_completed.connect(_on_all_eggs_found)
func _on_all_eggs_found():
print("You found all the eggs! Here is a bunny hat.")
# Unlock rewardgodot-mechanic-secretsMarker3DCollisionShape3DCollectionManagerqueue_free()