I have all my ballplayer scenes into the game and their corresponding buttons appear to be working properly. My problem is maintaining the score and the roster lineup as I switch from player to player.
I looked online for any ideas on writing a code that would help me achieve this outcome. I tried several ideas, but no luck yet.
Monday, December 12, 2011
Thursday, December 8, 2011
Getting Closer....
I have built all my games scenes for each of my 27 ballplayers. I can successfully add points and the ballplayer name to the scoring box and the lineup respectively, however I can only do it for one player at a time. When I move from position to position to select another ballplayer, it then wipes the score and the lineup clean and starts over again.
What I need it to do is to lock out a position once that position has been filled and hold the scoring and lineup intact til the next player is added...for instance...
A player correctly chooses a players home country and the points are added to the scoring box and the players name added to the lineup ... p - Hernandez 1000 i.e., no more pitchers can be chosen the spot is filled.
Then the player chooses a catcher ... I need the info for Hernandez, points and name in lineup, to be saved and once a catcher is correctly chosen ... c- Soto 2000 (1000 + Hernadez's 1000) and Soto to be added to the lineup and the catcher position locked out.
I will keep working and looking for help!
What I need it to do is to lock out a position once that position has been filled and hold the scoring and lineup intact til the next player is added...for instance...
A player correctly chooses a players home country and the points are added to the scoring box and the players name added to the lineup ... p - Hernandez 1000 i.e., no more pitchers can be chosen the spot is filled.
Then the player chooses a catcher ... I need the info for Hernandez, points and name in lineup, to be saved and once a catcher is correctly chosen ... c- Soto 2000 (1000 + Hernadez's 1000) and Soto to be added to the lineup and the catcher position locked out.
I will keep working and looking for help!
Subscribe to:
Posts (Atom)
