Game Unexpectedly Freezes when time's up

In my Game Jam game, when time’s up, everything unexpectedly freezes and turns black. I’m not finished with the whole ending yet, but I at least need to fix this bug first. Please Help!!

For clarification, when the time’s up, the game lags a bit, then the Time’s Up!! text appears very briefly before the screen turn entirely black. It lags a lot there during the events.
Please I need help quick!! Got to get this in before the game jam deadline, you know what I’m saying? Heheh… :sweat_smile:
(Actually tho please help!!)

There is a glitch where the ball repeatedly throws itself at player 2’s goal.

1 Like

Also when player 1 scores its worth 1 points, but when player 2 scores its worth 3 or 2 points

1 Like

Your using the Pause() function to wait between intervals. Which causes the lag.
You can use the timer extension or the JavaScript function setTimeout() instead.

3 Likes

What? The ball always starts at the middle!!

1 Like

Think I can fix that.

1 Like

Yeah I see that now. @redSprite you fixed the lag error, can you fix this one too! Would help alot, thanks!

I’m pretty sure the bug comes from the sprite hitting multiple tiles simultaneously within one frame, causing multiple points to be awarded.
I guess you could have it ghost through tiles until it gets reset to the middle of the screen.

1 Like

Maybe make it go to random areas?

1 Like