Eg. 1 combatant is placed at center, 2 combatants are placed each side of center.
It is eaiser to use pokemon as example. A trainer will have some pokemons, but only 1 or 2 will join the battle and the rest are waiting. Pokemons will be places at different positions in battle scene depending on number.
Basically, if you meet one trainer then it is 1 vs 1. If you meet two then it's 2 vs 2. But there may be other conditions, not only trainer number.
I have checked default battle spot setting, spot of combatant group, spot of battle component and some position node in event, but can't figure out a way to do this.
The battle is in another scene so I can't set game objects in battle scene to the spot of battle component in the field scene.
Any help?
1) Use the Own Spots setting in Battle components to define spots per battle.
2) Use the Own Battle Spots setting in combatant groups (Combatants > Combatant Groups) to define spots for group members
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
2) The spots setting in combatant groups is for defined enemy group right? But the group size and member for player are always change during runtime. How to use this setting in runtime?
2) Ah, yeah, for the player group that wouldn't work.
Another way I can think of would be changing the battle spot's position in the battle start event. E.g. first use a Check Group Size node to check if the player's battle group size equals 1 and use a Change Position node to change the Waypoint object Player Spots.
The default battle spot setup would be for 2 (or more) combatants.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
These are my settings
If i select use local space then all spots are placed on a different position than i set. If i deselect local space then the position is correct but all battle spots are put at the same position.
What to do here.
- use a Select Game Object node with Use All Objects enabled to store all spots into selected data
- use a Select Selected Data node to get the first from that list (and remove it from the list)
The next update will add a formation feature that'll make this easier.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!