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

Gameplay ElementsElementos de juego

Collectible ItemsObjetos coleccionables

Collectible Items give players Threads of Memory, Imagination, or Spirit. Use them to mark important moments and track progress through your StoryQuest.Los Collectible Items dan a los jugadores Threads de Memory, Imagination o Spirit. Úsalos para marcar momentos importantes y seguir el progreso a lo largo de tu StoryQuest.

You can also reveal a Collectible Item after a challenge, show dialogue when it's collected, or use it to load another scene, much like a Teleporter.También puedes revelar un Collectible Item después de un desafío, mostrar diálogo cuando se recoge, o usarlo para cargar otra escena, de forma parecida a un Teleporter.

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 show dialogue when a Thread is collected, load another scene, or do both.Puedes mostrar diálogo cuando se recoge un Thread, cargar 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

Load another sceneCarga otra escena

Use Next Scene to choose which scene opens after the player collects the Thread.Usa Next Scene para elegir qué escena se abre después de que el jugador recoja el Thread.

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.

Make sure the next scene has its own working Player node. The Player from this scene doesn't carry over. When the next scene loads, you control the Player that's already there.Asegúrate de que la escena siguiente tenga su propio nodo Player que funcione. El Player de esta escena no pasa a la siguiente. Cuando se carga la escena siguiente, controlas el Player que ya está allí.

Power-ups are remembered as you play through your StoryQuest, even when a new scene loads. You don't need to collect them again. Learn more in Adding a Powerup.Los potenciadores se recuerdan mientras juegas tu StoryQuest, incluso cuando se carga una escena nueva. No hace falta recogerlos otra vez. Más información en Añadir un potenciador.

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.

To choose where the player starts in the next scene, set Spawn Point Path. If you leave it empty, the player starts wherever the Player node is placed in that scene.Para elegir dónde empieza el jugador en la escena siguiente, ajusta Spawn Point Path. Si lo dejas vacío, el jugador empieza donde esté colocado el nodo Player en esa escena.

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 loads 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. Después, al recoger el Thread se carga 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.