Help building a game

Hi all! I’m building a simple game and I have a few problems that I can’t figure out. I’ve attached the file if anyone would be so amazing as to check it out.

  1. When you lose the game, it starts throwing errors non-stop until you close it. I’ve tried to put a removeEventListener in the game-over frame and it didn’t solve it.

  2. When you hit restart (and also when you hit start from the menu screen) the arrow keys stop working to move the car. They work the first time if you play it through without the stop(); action on the menu screen, so that it skips over it. But any button you press to start the game for the first or any other time, it makes the keys stop working.

  3. I can’t figure out how to display the end score on the game-over screen. But my score tracker is really ghetto… I made an object off the stage that continuously increases in x location, and that location is the score. So I will try changing it to a counter with the time being the “score”. But if you have any advice for then keeping it on screen to display where it stops, that would be helpful.

Thank you so much :slight_smile: