Hey guys, I have the following code all in one layer, on a frame which goes over the whole level, so the effects are consistent throughout the level. I want it to go to the frame "dead" when the health reaches 0, at the moment health works, but nothing happens when it reaches 0.
stop();
health=50
score=0
if (health=0) {
gotoAndStop("dead",1);
}