Ok i was making code so when the enemies hp is 0 or less than it would goto and play the win frame and if your hp is = or less than 0 it would play the frame “lose”. I have no idea why this isnt working but hopefully one of you kirupians can help me out
[AS]
if (_root.enemyhp < 0)
{
gotoAndPlay(“win”);
}
if (_root.hp < 0)
{
gotoAndPlay(“lose”);
}
[/AS]