like, ive created a game, and i need a message box to appear when a control ie Player One has not selected their pick. So, possibly need a timer event for the if statements, but i cant seem to get the IF right.. any help would be great. Thanks.In Visual Studio, C# windows applications,how can i make a message box appear when a control hasnt bn clicked?
Hi,
Why can't you do a global variable that denotes Players (a list of Player) where Player is class that describes each Player that has attributes such as personal information, score, active, isplaying, etc ...
The list of players hence List%26lt;Players%26gt; could be the data structure that holds all players data, so once the person starts playing it checks if that Player1 is active by just traversing that List.
If it doesn't exist, you can spawn a MessageBox.Show(';Player1 is not active';);
You don't need an event to see if Player One has not been selected, you could make it event oriented and once a player has been selected it will spawn an event stating player been selected then you can start the game. But you can do it either way.
Good Luck
Subscribe to:
Post Comments
(Atom)
No comments:
Post a Comment