PDA

View Full Version : Variable Help Please?


jmg42
04-02-2001, 09:59 PM
Hi,

I just need to use variables in a game I am creating where evertime the player chooses an answer, the computaer counts 1 (regardless of whether they are right or wrong). Then at the end, based on how many answers they clicked, they will get sent to a specific screen (a great job, a good job, an ok job, and a you should have studied more screen). All of the answers are buttons so I don't think the scripting should be too hard...do I need a control layer or something like that? I am new to this and any advice you guys can give me would be just great. Thanks very much.

Sincerely,
Josh

mgb
04-02-2001, 11:42 PM
On each button put;

count=count+1

then use an if statement;

if(count>=10){
_root.gotoAndPlay("yourframelabelname")
}

~mgb