I am making a 4 player couch co-op fighting game. Everything was going great until I got to the win conditions.
Since each player can choose: red team, blue team, or solo.
I am stumped on how to create the win condition....
I feel like arrays will be the answer some how. Just not sure on the logic....
Choose character, choose team. Fight.
Players die off.
Now how do I detect which players are victorious?
Note, I am using the Health add-on
related Player instance variables
Health; collective team health; team choice
Teams: Red, Blue, Solo P1, Solo P2, Solo P3, Solo P4
Teams can be:
2 v 1 v 1
1 v 1
1 v 1 v 1
1 v 1 v 1 v 1
As you can see, there are a lot of possible combinations.... so logic is required to sort it all out.
Please advise on the logic :)
Faux code is appreciated.
I consider myself an advanced user.