While Loop
Hi All,
I am hoping someone can help me with the following issue.
Part of my game requires a player to try and guess which of the six buttons the computer has randomly chosen. They also have the option to remove 1 - 4 buttons leaving a 50/50 chance to get it right.
I am using a game attribute to randomly select a number from 1 to 6. At this point if the player selects to remove 4 of the six buttons then I want to be able to randomly select the four buttons (Random Button 1, Random Button 2, Random Button 3 & Random Button 4) and at the same time make sure that the button selected by the game attribute is not removed.
I hope all this is making sense so far....
I am trying to use a 'while loop' with little success. Is this the best way to go or is there an easier option???
Comments
I wouldn't use a while loop for this. I'm not sure if this is the best way to do it - I only spent a few minutes throwing this together - but I'd take an approach more like the one demonstrated in the attached project.
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
Thanks Armelline