Somewhat stuck on this, I followed a tutorial to build a turn based battle engine and I cant get it to change scene/frame when a character gets to 0.
The enemys hp has an instance of 'ehp'
and the player has an instance of 'hp'
The tutorial says you can use this:
if(_root.hP <= 0){
_root.gotoAndStop(FRAMENUMBER);
}
if(_root.ehP <= 0){
_root.gotoAndStop(FRAMENUMBER);
}
but I cant get it to work :[. Where should I be putting it?
Any Ideas?
Cheers,
Sjoehanson