I have been working on a 2D fighting game. I failed to find a clean way to set up the events for a "Best of Three" match system. The system should fulfil the following criteria:
- Winner of the round needs to be displayed (An event so I can trigger spawning a few objects)
- After the layout resets the winners of the previous rounds still need to be visible
- After a player has won two rounds (no matter the order) the match ends
The following screenshot of my event sheet is a possible solution that I came up with on the fly but I dislike how repetitive the code is.
What I need is a simple solution to add up and compare the wins of each player and end the match once they have won.