PDA

View Full Version : Question about score game


jiamiao
03-30-2005, 03:25 AM
Hello, I'm doing a score flash game,
when I press the right letter for the object. the object disappared, I get 1 point.
my problem is even when after object is gone. I still keeps getting points each time I press the same letter key. what should I do to limit getting any more points after object is gone from the screen? please help

this is my sample game link
http://ca.geocities.com/xijieyu@rogers.com/score.fla

Thank you so much for your time

Jiamiao

pyrocorp
03-30-2005, 04:55 AM
maybee need to close or stop the listener?
also use a var to keep track of when that key is no longer valid
for example when you open object you can do: press = "NO";
and in your loop after assining the point make sure to set: press = "YES";

so in your score check include if (press == "NO".......

You get the Idea