Tutorials Home
What's New
Top Rated
Submit
myTutes
Random!
Simple Guessing Game with Actionscript
Author: Peter Brouwers
The Computer's Guess
Ok now for the second bit, where the computer tries to guess the player’s number.
We create a new layer with a keyframe at frame 3. Add a "Stop" action to this frame. Let’s 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 |
|
|
Added: : 1999-12-20
Rating: 5.59 Votes: 477
Hits: 14080
|
| » Author |
|
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 |
|
Download the files used in this tutorial.
|
|
Download (11 kb)
|
|
Get conversion and unzipping tools
for PC and Mac here!
|
| » Forums |
|
More help? Search our boards for quick answers!
|
|
Please rate this tutorial, 10 is the top rating, you can also click the
comments link to read/write a review.
|
|
|