Quiest
I like turtles!
Code:
LOOP
scrollx = 370;
while(scrollx > -40) //this while-loop makes the scores scroll across the screen from right to left.
delete_text (text1);
scrollx -= 2;
write_int(0,scrollx,117,0, &pointscounter);
frame;
end;
if(key(_enter))gameover(0,0);return;end; //end game by pressing start
if(lifecounter<=0)gameover(0,0);return;end; //end game by losing all health
FRAME;
END;
If the game ends normally by loosing all health, the points scroll until they are offscreen, and the game exits fine into the gameover/highscore screen.
But if I end the game by pressing START, the score keeps scrolling like an infinite loop and you have to restart.
Why? Why is the second "if..." working and the first not?
EDIT: spelling mistake, so there will be no exploding super nova (do super novas explode? I hope so...)