The Computer's Guess
Ok now for the second bit, where the computer tries to guess the players number.
We create a new layer with a keyframe at frame 3. Add a "Stop" action to this frame. Lets name it PCGuess. Setup the interface like this:
Set up three buttons and add captions like in the above example. The text field contains the variable PCNum.
Well, you probably know the algorithme for solving this.
|» Level Advanced|
Rating: 5.96 Votes: 505
|Peter is a twisted former teacher of English, who now only obeys the grammer of actionscript. He loves writing educational Flash pieces, and is known to enjoy reading actionscript poems by other authors as well.|
|Download the files used in this tutorial.|
|Download (11 kb)|
|More help? Search our boards for quick answers!|