Guide HubCentro de guías
Collectible Items · Gameplay ElementsObjetos coleccionables · Elementos de juego

Gameplay ElementsElementos de juego

Collectible ItemsObjetos coleccionables

Use a Collectible Item to give the player a Thread when they reach an important point in your StoryQuest.Usa un Collectible Item para darle al jugador un Thread cuando llega a un punto importante de tu StoryQuest.

You can use a Teleporter when you simply want the player to move from one scene to another. A Collectible Item gives you a little more control: it can include dialogue, stay hidden until a challenge is completed, and then send the player forward.Puedes usar un Teleporter cuando solo quieres que el jugador pase de una escena a otra. Un Collectible Item te da un poco más de control: puede incluir diálogo, quedarse oculto hasta que se completa un desafío, y luego enviar al jugador hacia delante.

Words with an orange underline open a short explainer. Click any of them.Las palabras con subrayado naranja abren una breve explicación. Haz clic en cualquiera.

Add a Collectible ItemAñade un Collectible Item

Step 1Paso 1

Click a number when you finish that step.Haz clic en un número cuando termines ese paso.

Add a Collectible Item to your sceneAñade un Collectible Item a tu escena

Add a CollectibleItem scene to the Playable Area where you want the player to find it.Añade una escena CollectibleItem a la Playable Area donde quieres que el jugador la encuentre.

Move it to the place where the player should be able to reach and collect it.Muévela al lugar donde el jugador debería poder llegar y recogerla.

Adding a Collectible ItemAñadir un Collectible Item

Choose the ThreadElige el Thread

Step 2Paso 2

Choose the Thread the player collectsElige el Thread que recoge el jugador

Select the CollectibleItem and find Item in the Inspector.Selecciona el CollectibleItem y busca Item en el Inspector.

Choose the for the Thread you want the player to collect. The Collectible Item will use that Thread's artwork in the Playable Area and add it to the player's inventory when it is collected.Elige el del Thread que quieres que el jugador recoja. El Collectible Item usará la imagen de ese Thread en la Playable Area y lo añadirá al inventario del jugador cuando se recoja.

Decide what happens when it is collectedDecide qué pasa cuando se recoge

You can add dialogue, move the player to another scene, or do both.Puedes añadir diálogo, mover al jugador a otra escena, o hacer las dos cosas.

Steps 3–4Pasos 3–4

Add dialogueAñade diálogo

You can show a short piece of dialogue after the player collects the Thread.Puedes mostrar un breve diálogo después de que el jugador recoja el Thread.

Create or choose a DialogueResource, then add it under Collected Dialogue. If needed, choose where the dialogue should begin under Dialogue Title.Crea o elige un DialogueResource, y añádelo bajo Collected Dialogue. Si hace falta, elige dónde debe empezar el diálogo en Dialogue Title.

Want another example? Check out Add a Short Conversation in the dialogue guide for more help creating and writing dialogue.¿Quieres otro ejemplo? Mira Add a Short Conversation en la guía de diálogo para más ayuda creando y escribiendo diálogo.

Showing dialogue when it is collectedMostrar diálogo cuando se recoge

Send the player to another sceneEnvía al jugador a otra escena

A Collectible Item can also move the player from one scene to another when it is collected. Use Next Scene to choose where the player should go next in your StoryQuest.Un Collectible Item también puede mover al jugador de una escena a otra cuando se recoge. Usa Next Scene para elegir a dónde debe ir el jugador a continuación en tu StoryQuest.

You can choose the scene in either of these ways:Puedes elegir la escena de cualquiera de estas dos formas:

  • Click the file button beside Next Scene and find the scene.Haz clic en el botón de archivo junto a Next Scene y busca la escena.
  • In the FileSystem, right-click the scene you want, copy its path, and paste the path into Next Scene.En el FileSystem, haz clic derecho en la escena que quieres, copia su ruta, y pega la ruta en Next Scene.

If the player should stay in the current scene after collecting the Thread, leave Next Scene empty.Si el jugador debe quedarse en la escena actual después de recoger el Thread, deja Next Scene vacío.

If the player should enter the next scene at a specific spawn point, you can also set Spawn Point Path.Si el jugador debe entrar en la escena siguiente en un punto de aparición concreto, también puedes ajustar Spawn Point Path.

Setting Next SceneAjustar Next Scene

Choose when the collectible appearsElige cuándo aparece el coleccionable

So far, the Collectible Item has been Revealed, which means the player can see and interact with it as soon as the scene begins.Hasta ahora, el Collectible Item ha estado Revealed, lo que significa que el jugador puede verlo e interactuar con él en cuanto empieza la escena.

Steps 5–6Pasos 5–6

Available from the startDisponible desde el principio

Leave Revealed turned on when reaching the Thread is already part of the challenge.Deja Revealed activado cuando llegar al Thread ya es parte del desafío.

This works well when reaching the Thread is already the challenge. For example, the player might need to sneak past enemies and make it all the way to the Thread before they can collect it.Esto funciona bien cuando llegar al Thread ya es el desafío. Por ejemplo, el jugador podría tener que colarse sin que lo vean los enemigos y llegar hasta el Thread antes de poder recogerlo.

Appear after a challengeAparece después de un desafío

Turn Revealed off if the Thread should stay hidden until the player completes something first.Desactiva Revealed si el Thread debe quedarse oculto hasta que el jugador complete algo primero.

This is useful when the player could otherwise simply walk over to the Thread and skip the intended challenge.Esto es útil cuando, de otro modo, el jugador podría simplemente caminar hasta el Thread y saltarse el desafío previsto.

Some Threadbare challenges already have a win state that can be connected to a Collectible Item's reveal function.Algunos desafíos de Threadbare ya tienen un estado de victoria que se puede conectar a la función reveal de un Collectible Item.

Example sceneEscena de ejemplo

Fill Barrel / Combat ChallengeDesafío Fill Barrel / Combate

Open this example to see a Fill Barrel challenge reveal a Collectible Item when the challenge is completed. A Fill Barrel Logic node in the Scene tree handles its win state. Collecting the Thread then sends the player into the Sequence Puzzle scene.Abre este ejemplo para ver cómo un desafío Fill Barrel revela un Collectible Item cuando se completa el desafío. Un nodo Fill Barrel Logic en el Scene tree gestiona su estado de victoria. Recoger el Thread luego envía al jugador a la escena del Sequence Puzzle.

Scene pathRuta de la escena
res://scenes/quests/template_quests/NO_EDIT/2_NO_EDIT_combat/NO_EDIT_combat.tscn

Paste this path into the FileSystem filter in Godot (StoryQuest kit open) to open the scene and try it.Pega esta ruta en el filtro del FileSystem en Godot (con el kit de StoryQuest abierto) para abrir la escena y probarla.

Example sceneEscena de ejemplo

Sequence PuzzleSequence Puzzle

Open this example to see a Sequence Puzzle reveal a Collectible Item after the puzzle is solved. The top-level Sequence Puzzle node is the part of the scene that knows when the puzzle has been solved.Abre este ejemplo para ver cómo un Sequence Puzzle revela un Collectible Item después de resolver el puzle. El nodo Sequence Puzzle de nivel superior es la parte de la escena que sabe cuándo se ha resuelto el puzle.

Scene pathRuta de la escena
res://scenes/quests/template_quests/NO_EDIT/3_NO_EDIT_sequence_puzzle/NO_EDIT_sequence_puzzle.tscn

Paste this path into the FileSystem filter in Godot (StoryQuest kit open) to open the scene and try it.Pega esta ruta en el filtro del FileSystem en Godot (con el kit de StoryQuest abierto) para abrir la escena y probarla.

You do not need to make every collectible conditional. Leave Revealed on whenever the Thread should already be available.No necesitas hacer condicional cada coleccionable. Deja Revealed activado siempre que el Thread ya deba estar disponible.

You should now be able to…Ahora deberías poder…

add a collectible item that gives the player a Thread when they reach it.añadir un objeto coleccionable que le da al jugador un Thread cuando lo alcanza.