Here is the code for my hat system for my fighting game https://pastebin.com/GaAY0t2p how can I add a better system to keep track of each player? Eventually the max number of players is gonna be 4, but for right now I just wanna work with 2 (Player1 and Player2) so how can I keep track of the players better? Because I have different systems in my game that I need to check ex: if Player1s hat is thrown and hits Player2 then take off there hat or if Player1 steps on Player2s hat then kill Player2 etc. (I'm not using hat accessories the hat is actually part of the game mechanics and is not an accessory there is a character select menu and each character has there own hat which is given to the player after they select their character)
COMMUNITY QUESTION
How can I add a system to keep track or check things for each player?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.
