How come this code works at taking -5 health away:
onClipEvent (enterFrame)
{
if (this.hitTest(_root.fish))
_root.health.text = _root.health.text - 5;}
but this code for adding 10 health dont:
onClipEvent (enterFrame)
{
if (this.hitTest(_root.fish))
_root.health.text = _root.health.text + 10;}
instead of adding +10 like ...40...50...60 it does this instead ...40....4010....401010.....40101010
help plz
and secondly why dont this code work?
onClipEvent (enterFrame)
{
if (this.hitTest(_root.fish))
_root.heart (visible = false)}
thx in advance