Hi All,
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....
To recap.
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
scirra.com/store/construct2-behaviours/health-2133
related Player instance variables
Health; collective team health; team choice
possible combinations
Players: 2-4
Teams: Red, Blue, Solo P1, Solo P2, Solo P3, Solo P4
Teams can be:
3v1
2v2
2v1
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.