Internet Commerce

Partners & Affiliates














Developer Channel

internet.com


Tutorials Home What's New Top Rated Submit myTutes Random!

Search Tutorials


Tutorials Tutorials » Games

Categories Simple Guessing Game with Actionscript
Author: Peter Brouwers

 
Page 6
«prev 1 2 3 4 5 6 7 8 next»

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.

«prev 1 2 3 4 5 6 7 8 next»

» 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.
10 9 8 7 6 5 4 3 2 1
Read or Post Comments
 
   
 


The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers