Announcement

Collapse
No announcement yet.

multiplayer issue adding players into an array

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    multiplayer issue adding players into an array

    So I've been working on a multiplayer game and I've been having some issues. My idea is whenever a player clicks on a enemy the player is added to an array of players selecting the enemy so that I have an array with every player selecting the enemy. I was planning to use this later to update health whenever the enemy takes damage or whatnot. The code is from my masterCharacter class which both the players and the enemies are children of. I also use an interface for calling the onSelect function for the player.

    If anyone has some ideas or another way to accomplish this I'd love to hear.
Working...
X