Hi, im new to these forums. I'm making a guessing game - when you press one of three buttons, this script executes:
code:
on (release)
{
_root.win=0;
_root.win=random(2);
if (_root.win=0);
{ gotoAndStop(3); } //Lose
if (_root.win=1);
{ gotoAndStop(4); } //Win
}
The problem is that the player always wins. Where is the error?




Reply With Quote