ok, so im making a game.
but the if else control i have that defines if you pass the level(if you have enough points) or not, doesnt work.
what i have is a dynamic text, the instance name is "score_txt" and it keeps the points, it works just fine.
than i have a movie clip. and on the internal timeline of the movie clip, on the last frame, i have the if else control. it looks like this.
if (_global.score=_global.score_txt==300) {
_root.gotoAndStop(3);
} else {
_root.gotoAndPlay(95);
}
now it should work just fine, if you have 300 points you go to frame 3(next level) and if you dont you go to frame 95(game over screen)
but when i didnt work i played around with it, and i discovered, it wasnt even looking at the condition, and if i had "==" or "===" it would automatically go to frame 95 when the frame of the internal timeline was entered, and when i had "=" or ">=" it would just take me to frame 3.
what is wrong with this control? please help me, tell me what to fix, or whatever it needs.