Discuss Scratch
- Discussion Forums
- » Questions about Scratch
- » Mb, clone, sprite Limits
- Uniquename1
-
Scratcher
100+ posts
Mb, clone, sprite Limits
I heard somewhere there was a 10Mb size limit on projects and around a 300 something limit on clones.
Where can i see how much memory(Mb) I've used so far?
Is the clone limit for total clones or clones per thing cloned?
Not that i expect to use that many but I do expect another 50 or so sprite sentry/ turrets/ space stations.
Is there a limit on number of sprites?
Not that it matters but feel free to check out my game. Add comments and suggestions.
https://scratch.mit.edu/projects/145740455/#player
I finally got my lasers and enemies to operate independent of my player movement in a x and y scroller. Still a few problems getting the aliens to draw from the same bullet cache because of the scrolling. Also trouble making some kind of list of enemies so I don't have 30 “or” blocks but nothing that's stopping me and I'm making progress! They may just all have their own bullet sprite and there may be many “or” blocks in the end (like 50! I can probably limit that somehow). Almost ready for full scale production of sentries, enemy bases, special weapons, and perhaps a worm hole to send them to the alien homeworld as an alternate stage. There will be a few friendlies with mission type things and electric barriers blocking some power ups for the special weapons yet to be created.
Where can i see how much memory(Mb) I've used so far?
Is the clone limit for total clones or clones per thing cloned?
Not that i expect to use that many but I do expect another 50 or so sprite sentry/ turrets/ space stations.
Is there a limit on number of sprites?
Not that it matters but feel free to check out my game. Add comments and suggestions.
https://scratch.mit.edu/projects/145740455/#player
I finally got my lasers and enemies to operate independent of my player movement in a x and y scroller. Still a few problems getting the aliens to draw from the same bullet cache because of the scrolling. Also trouble making some kind of list of enemies so I don't have 30 “or” blocks but nothing that's stopping me and I'm making progress! They may just all have their own bullet sprite and there may be many “or” blocks in the end (like 50! I can probably limit that somehow). Almost ready for full scale production of sentries, enemy bases, special weapons, and perhaps a worm hole to send them to the alien homeworld as an alternate stage. There will be a few friendlies with mission type things and electric barriers blocking some power ups for the special weapons yet to be created.
- awsome_guy_360
-
Scratcher
1000+ posts
Mb, clone, sprite Limits
Not that it matters but feel free to check out my game. Add comments and suggestions.
https://scratch.mit.edu/projects/145740455/#player
First off, plz don't advertise.
Is the clone limit for total clones or clones per thing cloned?
Not that i expect to use that many but I do expect another 50 or so sprite sentry/ turrets/ space stations.
If I understand your question correctly, the clone limit is based on (I believe so anyways) on each individual sprite.
- Hex4Nova
-
Scratcher
1000+ posts
Mb, clone, sprite Limits
Where can i see how much memory(Mb) I've used so far?Download the project and check the properties. You should be able to see the size from there.
Is the clone limit for total clones or clones per thing cloned?I don't think there are any individual limits for each sprite, but a project can only have a total of max 301 clones at the same time.
Not that i expect to use that many but I do expect another 50 or so sprite sentry/ turrets/ space stations.
Is there a limit on number of sprites?Not as far as I know. The Wiki doesn't say anything about it either.
- TheLogFather
-
Scratcher
1000+ posts
Mb, clone, sprite Limits
There are various size limits when uploading a project. For example…
It's the second one that you're most likely to run into, since it includes all the variable and list data of the project.
More importantly, there's a bug in Scratch which causes list data to get included *twice*. That means if you have lots of items in your lists when you save, you are more likely to hit this limit.
In practice, then, since each sprite's scripts/variables/lists get encoded into the JSON (but not the costumes, etc.), the number of sprites is really mainly limited by that 2.5MByte JSON limit, rather than anything else.
As already mentioned above by others, there's a limit of 301 clones (in total, for the whole project). Once there are 301 clones already created by a project, subsequent “create clone of” blocks will do nothing until some of the existing clones are deleted.
- The limit for each asset (costume, etc.) is 10MBytes.
- The limit for the JSON encoding of the scripts and variable/list data is 2.5MBytes (used to be 10, but now reduced so much, unfortunately).
- The limit for the whole project is 50MBytes (but this is with all the parts also compressed into a single ‘object’, I believe).
It's the second one that you're most likely to run into, since it includes all the variable and list data of the project.
More importantly, there's a bug in Scratch which causes list data to get included *twice*. That means if you have lots of items in your lists when you save, you are more likely to hit this limit.

In practice, then, since each sprite's scripts/variables/lists get encoded into the JSON (but not the costumes, etc.), the number of sprites is really mainly limited by that 2.5MByte JSON limit, rather than anything else.
As already mentioned above by others, there's a limit of 301 clones (in total, for the whole project). Once there are 301 clones already created by a project, subsequent “create clone of” blocks will do nothing until some of the existing clones are deleted.
Last edited by TheLogFather (Feb. 27, 2017 23:58:05)
- Uniquename1
-
Scratcher
100+ posts
Mb, clone, sprite Limits
Thanks all, I'll have to download it to check the size so far. FPS lag may or may not get me too. I've briefly read some ways to monitor fps. My stuff isn't complicated but hoping to have a whole level on about 5x5 panels. Mostly empty outer space and can hide distant stuff.
- footsocktoe
-
Scratcher
1000+ posts
Mb, clone, sprite Limits
yes, there is a 301 clone limit, per sprite only. I don't know about the limit on sprites .. But i've seen projects with MASSIVE amounts of sprites, so you don't need to worry if there is.
It's not per sprite, I don't think. It's the total.
- Hex4Nova
-
Scratcher
1000+ posts
Mb, clone, sprite Limits
yes, there is a 301 clone limit, per sprite only. I don't know about the limit on sprites .That's a nice necro. But i've seen projects with MASSIVE amounts of sprites, so you don't need to worry if there is.
- Discussion Forums
- » Questions about Scratch
-
» Mb, clone, sprite Limits





. But i've seen projects with MASSIVE amounts of sprites, so you don't need to worry if there is.
