Kickingheads - showing wrong win message
Options
John05
✭
Hi,
If I start a kickingheads game with 2 players and score 10 points with one of the players, then on both clients the "You Lose" message is shown, although the player who has scored 10 points should get displayed the "You Won" message.
How to fix this?
Thanks in advance,
John
If I start a kickingheads game with 2 players and score 10 points with one of the players, then on both clients the "You Lose" message is shown, although the player who has scored 10 points should get displayed the "You Won" message.
How to fix this?
Thanks in advance,
John
0
Comments
-
Hello @John05,
Nice catch, thanks, it will be fixed in the next release (1.0.7). You can adjust by changing the "ownerIndex" property of each goal object. The ownerIndex it is used for objects that are already in the scene before game starts, if you set 0 it will belong to the first player, if you set 1 it will belong to the second player, and so on. If you take a look at the scene you will find "Goals/Goal1/Goal" and "Goals/Goal2/Goal", you need to change the "ownerIndex" property in GoalBehaviour component to 0 and 1 respectively.
1 -
Thanks @JeffersonHenrique, very useful to know how to use that owner index actually!0