I have my player followers spawn in the scene like any classic jrpg using the Spawn group setting, but when I change scenes or when I enter a battle (in another scene following the 2D tutorial) on returning to the level my player group is no longer there.
Am I doing something wrong so the group doesn't persist between scenes changes.


Thanks in advance.
  • That should actually work by just enabling the Spawn Group setting in the Player/Group Settings in Game > Game Settings.
    E.g. check out this tutorial from the 3D Playground RPG series.
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
  • Thanks! I see the issue. The Spawn Group feature spawns combatants that are part of the Battle Group.

    First of all this is my design setup:

    -I have human combatants and "mon" combatants (monsters).
    -Mon combatants only appear in battles (which take place in a different scene), so I don’t want them to spawn in the main level (e.g., the town).
    -Human combatants act as player followers. They should spawn in the level and follow the player, but they should not appear in combat.

    And here's some problems:

    Keeping Human Combatants Out of Battle:
    To prevent human combatants from appearing in battles, I remove them from the Battle Group in the Start Schematic.
    However, this causes an issue: once removed from the Battle Group, they no longer respawn properly after a scene change.
    Example: In the image, the "follower" (a human combatant) leaves the Battle Group and doesn't return after a scene transition.

    Preventing Mon Combatants from Spawning in the Field:

    I don’t want mon combatants to spawn in the main level, but I can’t find an option in Spawn Group settings to exclude them from being spawned while still keeping them in the Battle Group.

    Player Prefab Not Retaining Custom Controls After Scene Transition:

    When using Spawn Group to spawn the player, everything works initially.
    But after entering a battle in another scene (like in the 2D tutorial) and returning to the main level, the player's prefab spawns without custom control behaviors enabled.
    As a result, the player gets stuck and can’t move.

    This is giving me a headache and I know is my design's fault and not ork's.

    Any insights or solutions would be greatly appreciated! Thanks again!

    image
  • Spawn Group is for out-of-battle spawning of the group, since all battle group members are automatically spawned for battles.

    Hm, a way to handle this could be either an Auto Machine on your player, or a global machine starting on scene change.
    The schematic for the machine would e.g. check if the game is in battle or not (Check Game State node) and spawn the human members as needed. To spawn them, you can first use a Select Combatant node to get the whole group of the player and filter them e.g. by combatant type or any other condition that marks them as human. With that, you'd have them in stored in selected data and can use the Spawn Combatant node to spawn them.
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
  • Thank you so much!!

    I made the global machine work on scene change and spawn a combatant.
    But I can't get the Select Combatant node to work to spawn all my human combatant type combatants at once.

    Please could you help me out checking what I'm doing wrong?

    image
Sign In or Register to comment.