I am trying to do the following but having a hard time know what to search in the forums and online when it comes to terms. Some guidance would be massively appreciated.
My first screen determines how many players will be playing the game. So I ask, how many players. This is a board game that can have upwards of 10 players.
So let's say they would like to choose 3 players. I would then like to create 3 instances of the player object AND assign them each a player number via an instance variable called PlayerNumber. Or... I don't have to create the player object yet.
The other thought I had was gather all the information about the player before creating the player object as the following screen I need to have the player make a few choices about their character. They need to choose a class, game piece color, etc.
When the # of players is selected on the first screen, say 3 players in this case, would it be better to create an array that has a row for each player. Then as they choose class, piece color, etc. we would fill the array? Then finally when the game starts we would create a player object that represents their game on the board with the selected color, etc.?
If that is the better direction how do I create an array on the fly and set the rows to how many players there are from the variable.
So the array would maybe be something like this...
I would then fill each of the array spots with their choices. Then once we load the game board I would need to be able to create the pieces based on their choice during the setup screens.
If you can direct me to the best tutorials on how to go about this or provide guidance of let me know what you need for me to gain my answers I would be mega appreciative. Thanks for your time spent! Means a lot!