Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > ActionScript Forums Group > Simple Stuff (Newbies)

Reply
 
Thread Tools Rate Thread Display Modes
Old 06-30-2003, 05:43 AM   #1
spot
Registered User
 
Join Date: May 2003
Posts: 7
Question math.random or variable setting problem

I am doing a tute from a friends of ed book. It is a hangman game
that uses an array to randomly get a word and then you guess the letters.

It works the first time and them when it picks a word it appears to tack letters of the last word mixed in with it.

I have stared at this for hours in complete frustration. Im am only a beginner. Can anyone help.
Attached Files
File Type: zip hangman.zip (13.0 KB, 190 views)
spot is offline   Reply With Quote
Old 06-30-2003, 07:55 AM   #2
farafiro
Addicted To FLASH
 
farafiro's Avatar
 
Join Date: Dec 2001
Location: Egyptian in UAE
Posts: 12,436
Send a message via MSN to farafiro Send a message via Yahoo to farafiro
Default

works like a treat here
just u were adiing a "comma" (,) after the last word in the wordlist array

is this it??
__________________
€* GOD Is Near €*
Questions Don't PM for Questions . Thanks
An eye for an eye, make the whole world blind
_____________________________________________GHANDI
farafiro is offline   Reply With Quote
Old 06-30-2003, 08:37 AM   #3
spot
Registered User
 
Join Date: May 2003
Posts: 7
Default hangman

no, sorry i put that coma their when i was experimenting to get rid of the problem, it through all sorts of script errors so I Knew this couldnt be the cause..

did you try playing it a few times. Play it by getting some wrong.

Thank you for your help, I am grateful as i gather your time and input is of great quality.
spot is offline   Reply With Quote
Old 06-30-2003, 08:44 AM   #4
farafiro
Addicted To FLASH
 
farafiro's Avatar
 
Join Date: Dec 2001
Location: Egyptian in UAE
Posts: 12,436
Send a message via MSN to farafiro Send a message via Yahoo to farafiro
Default

I've tried it twice and it worked nice
__________________
€* GOD Is Near €*
Questions Don't PM for Questions . Thanks
An eye for an eye, make the whole world blind
_____________________________________________GHANDI
farafiro is offline   Reply With Quote
Old 06-30-2003, 08:44 AM   #5
spot
Registered User
 
Join Date: May 2003
Posts: 7
Default Same Topic

i just removed the comma and played the game one and i lost delibratly. when i went to replay it the screen shows this.

???c??
as it shows it has not cleared the field and reveals one or two letter.
spot is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:04 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.