Discuss Scratch

Ricardo_san
New Scratcher
2 posts

Flappy Bird- Pipes stop spawning after several attempts?

My problem is pretty self-explanatory from the title.
I'm encountering some annoying bugs in the Flappy Bird game I recently created.
Basically, after roughly 5 attempts, the pipes start spawning much less frequently, and eventually stop spawning altogether. I'd like some advice on fixing this bug.
While I'm at it, I also can't figure out what's causing the scoring system to change the score before the bird passes the pipes instead of during or after.

Here's the game: https://scratch.mit.edu/projects/365643799/
Thanks.
SpideyPlaysMC
Scratcher
500+ posts

Flappy Bird- Pipes stop spawning after several attempts?

Add this block:
delete this clone
to the script in the “pipe” sprite:
when I receive [restart v]
hide
The problem was that the clones may be hiding, but they still exist in the project, meaning less and less clones will spawn to prevent lag.
For the second problem I recommend centering the flappy bird costume in the editor.

Last edited by SpideyPlaysMC (Feb. 11, 2020 23:21:52)

Ricardo_san
New Scratcher
2 posts

Flappy Bird- Pipes stop spawning after several attempts?

SpideyPlaysMC wrote:

Add this block:
delete this clone
to the script in the “pipe” sprite:
when I receive [restart v]
hide
The problem was that the clones may be hiding, but they still exist in the project, meaning less and less clones will spawn to prevent lag.
For the second problem I recommend centering the flappy bird costume in the editor.

Thanks! Fixed.
ninjanicolas6
New Scratcher
1 post

Flappy Bird- Pipes stop spawning after several attempts?

Bro copied the first guy LOL

Powered by DjangoBB