Discuss Scratch

567boi1234
Scratcher
91 posts

really weird bug in my game

could someone take a look at my game and help me fix this weird bug?
at around 8-9 seconds the game randomly breaks (obstacles and trail stop spawning) and idk how to fix it
i dont know if it applies to both gamemodes but it happens every time in fun mode
game is wave game
--Slothy--
New Scratcher
1 post

really weird bug in my game

Commented on your project but here's what happened:

Found an error: Scratch has a clone limit of 300 at once. You’re not deleting clones in many of your sprites, which are filling up the clone counter. After about 8 seconds, you reach the maximum number of clones, and the game won’t create any more. A simple fix is to delete clones when you’re done with them.

(I figured out the problem by changing a variable by 1 when I created a clone and decreasing it by 1 when I deleted a clone.)

Powered by DjangoBB