Discuss Scratch

noob-master32
Scratcher
44 posts

glitch with bullets in my game

in my game https://scratch.mit.edu/projects/1189439208/ if you play for a really long time, the bullets stop spawning even know i made the clones delete and it keeps cloning until you die! so how is this happeneng? pls help
SML_365
Scratcher
39 posts

glitch with bullets in my game

Hi noob-master32!

In your code, there's no

delete this clone

block.

To fix this issue, put it right here, in “sprite3” :

when I start as a clone
show
go to x: (pick random (-240) to (240)) y: (pick random (0) to (240))
glide (1) secs to (sprite2 v)
hide
delete this clone

Last edited by SML_365 (June 17, 2025 17:33:35)

homeschoolextras
Scratcher
31 posts

glitch with bullets in my game

Almost every time, if your clones quit spawning after a while in your projects, it's because you hit the clone limit.
homeschoolextras
Scratcher
31 posts

glitch with bullets in my game

You aren't deleting your clones anywhere as the previous person pointed out. However, in Sprite3, when you receive the message1 message, if you have any clones at that time, all of your clones will receive that message as well. This could also be creating clones that you are not expecting.
noob-master32
Scratcher
44 posts

glitch with bullets in my game

ok thx

Powered by DjangoBB