I need some help with my score counter in a game im making. Whenever you
rollover a object with another, it gives me a score of NaN? instead of a number.
Heres my score actionscript
" _root.total = _root.total + 100;"
And here is the full code.
onClipEvent (enterFrame) {
if (_root.punchbg, hitTest(_root.ball)) {
_root.punchbg =_alpha = 10
mysound = new Sound();
mysound.attachSound(“Scrbar”);
mysound.start()
_root.total = _root.total + 100;
} else {
_root.punchbg =_alpha = 100
}
}
And i allready set the Var to total.
Does anybody know how to fix this?
[SIGPIC][/SIGPIC]