ok heres what i need help with
with this the score counts down from 10 to 0
1 for every coin the main MC hits
if (_root.coin.hitTest(this.hero_hit)) {
collected_coins++;
_root.level1_text.text = 10-collected_coins+" more to go";
}
i tryed to duplicate this to make a "lives" system, but it didnt work
it keeps showing up in the actual game as "NaN left"
if (_root.wall.hitTest(_x, _y, true)){
lives_left++;
_root.lives.text = 5-lives_left+" left";
}
can anyone tell me what im doing wrong?





Bookmarks