Using Variabes with Text Areas
Hey,
Im trying to make a game, but want to use specific text input to get points, this is probably simple but it doesnt seem to work for me.
Essentially I have a text input area on the screen and if the user enters the right value and then clicks continue they get points.
I have a text input area named numgame and have attached this code to the continue button:
on (release) {
if (numgame = "343"){
_root.score = _root.score + 100;
gotoAndPlay(536);
}
}
Currently it seems like the if statement isnt even doing anything, the score is added once continue is pressed no matter what is entered. Is there a better/ correct way of doing this.