Guide HubCentro de guías
Adding a Powerup · Gameplay ElementsAñadir un potenciador · Elementos de juego

Working with Threadbare gameplay elementsTrabajar con elementos de juego de Threadbare

Adding a PowerupAñadir un potenciador

When someone plays your StoryQuest from the beginning, their player starts without any abilities. Powerups let players unlock abilities like Repel and Grapple. Once collected, an ability stays with them as they move through your StoryQuest.Cuando alguien juega tu StoryQuest desde el principio, su jugador empieza sin ninguna habilidad. Los potenciadores permiten desbloquear habilidades como Repeler y Grapple. Una vez recogida, la habilidad se queda con el jugador mientras avanza por tu StoryQuest.

Add and Set Up a PowerupAñade y configura un potenciadorCreateCrear

Open the scene where you want players to discover a powerup. Make sure they'll find it before reaching a challenge that needs the ability, whether that's in the same Playable Area or a later one.Abre la escena donde quieres que los jugadores descubran un potenciador. Asegúrate de que lo encuentren antes de llegar a un reto que necesite la habilidad, ya sea en la misma Playable Area o en una posterior.

Steps 1–2Pasos 1–2

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

Add the powerupAñade el potenciador

  • In the , search for powerup.tscn.En el , busca powerup.tscn.
  • Drag powerup.tscn onto OnTheGround in your .Arrastra powerup.tscn sobre OnTheGround en tu .
  • In the , move the powerup somewhere players can easily find it.En el , mueve el potenciador a un lugar donde los jugadores lo encuentren fácilmente.

Choose its abilityElige su habilidad

Select Powerup in the Scene Tree. In the , find Ability and choose what the powerup gives your player.Selecciona Powerup en el árbol de escena. En el , busca Ability y elige qué le da el potenciador a tu jugador.

  • Ability A: Repel. This is selected by default.Ability A: Repeler. Viene seleccionada por defecto.
  • Ability B: Grapple.Ability B: Grapple.
  • Ability B Modifier 1: Longer Thread. Makes Grapple reach about twice as far. Players need Grapple for this upgrade to work.Ability B Modifier 1: Hilo más largo. Hace que Grapple llegue unas dos veces más lejos. Los jugadores necesitan Grapple para que esta mejora funcione.

The other ability options aren't currently used in the kit.Las demás opciones de habilidad no se usan por ahora en el kit.

Need more than one ability? Add another powerup and choose a different ability for it.¿Necesitas más de una habilidad? Añade otro potenciador y elige una habilidad distinta para él.

Want to change its glow? Use Highlight Color in the Inspector to choose a different color.¿Quieres cambiar su brillo? Usa Highlight Color en el Inspector para elegir otro color.

See how to add and set up a powerupMira cómo añadir y configurar un potenciador

The powerup sceneLa escena del potenciador

StoryQuest Kit pathRuta en el StoryQuest Kit
res://scenes/game_elements/props/powerup/powerup.tscn
See one in useMíralo en uso NO_EDIT Combat has a powerup named RepelPowerup under OnTheGround.NO_EDIT Combat tiene un potenciador llamado RepelPowerup dentro de OnTheGround.

Test Your PowerupPrueba tu potenciadorPlayJugar

Why might your powerup look faded?¿Por qué tu potenciador podría verse atenuado?

When you use Run Current Scene (F6), Repel and Grapple are already turned on so you can test challenges quickly. Since your player already has those abilities, their powerups look faded and can't be collected.Cuando usas Ejecutar escena actual (F6), Repeler y Grapple ya están activados para que puedas probar retos rápido. Como tu jugador ya tiene esas habilidades, sus potenciadores se ven atenuados y no se pueden recoger.

To test collecting a powerup, you need to play your StoryQuest from the beginning.Para probar cómo se recoge un potenciador, tienes que jugar tu StoryQuest desde el principio.

Try it outPruébalo

After collecting it, the powerup fades because your player now has that ability.Después de recogerlo, el potenciador se atenúa porque tu jugador ya tiene esa habilidad.

See a player collect the powerupMira a un jugador recoger el potenciador
Something not working?¿Algo no funciona?
ProblemProblemaWhat to checkQué revisar
The powerup looks faded and I can't collect it.El potenciador se ve atenuado y no puedo recogerlo.Your player already has that ability. If you're testing with Run Current Scene (F6), try Run Project (F5) instead.Tu jugador ya tiene esa habilidad. Si estás probando con Ejecutar escena actual (F6), prueba con Ejecutar Proyecto (F5).
The ability works when I test my scene, but not when I play my whole StoryQuest.La habilidad funciona al probar mi escena, pero no al jugar mi StoryQuest completa.Make sure players can collect the powerup before reaching a challenge that needs its ability.Asegúrate de que los jugadores puedan recoger el potenciador antes de llegar a un reto que necesite su habilidad.
I collected the powerup, but nothing changed.Recogí el potenciador, pero no cambió nada.Check Ability in the Inspector. Some options aren't used yet, and Longer Thread only works if the player also has Grapple.Revisa Ability en el Inspector. Algunas opciones todavía no se usan, y el hilo más largo solo funciona si el jugador también tiene Grapple.
My player walks over the powerup instead of in front of or behind it.Mi jugador pasa por encima del potenciador en lugar de por delante o por detrás.Make sure Powerup is under OnTheGround in your Scene Tree.Asegúrate de que Powerup está dentro de OnTheGround en tu árbol de escena.