Discuss Scratch

weihuhu
Scratcher
47 posts

Help creating save code!

My project:
https://scratch.mit.edu/projects/1195370857/
Is a drawing project.
Enter+U to load save code and Enter+I to import.
The size gets crazy for some reason.
grkw2020
Scratcher
500+ posts

Help creating save code!

I'm on mobile, so can't easily read the code. But it seems like the save code is a list of coordinates? Or am I wrong?
Cxderz
Scratcher
8 posts

Help creating save code!

grkw2020 wrote:

I'm on mobile, so can't easily read the code. But it seems like the save code is a list of coordinates? Or am I wrong?
that is a decent way to do it but it is kinda weird to encode and decode lol
grkw2020
Scratcher
500+ posts

Help creating save code!

Cxderz wrote:

grkw2020 wrote:

I'm on mobile, so can't easily read the code. But it seems like the save code is a list of coordinates? Or am I wrong?
that is a decent way to do it but it is kinda weird to encode and decode lol
Well I'm not sure if that's the method they're actually doing.
weihuhu
Scratcher
47 posts

Help creating save code!

Cxderz wrote:

grkw2020 wrote:

I'm on mobile, so can't easily read the code. But it seems like the save code is a list of coordinates? Or am I wrong?
that is a decent way to do it but it is kinda weird to encode and decode lol
Yeah, I'm trying to fit all the coordinates of the pen's xs and ys and colors and brightnesses and blah blah blah into one code to copy. One part is fixed but it takes so much time to LOAD!
grkw2020
Scratcher
500+ posts

Help creating save code!

weihuhu wrote:

Cxderz wrote:

grkw2020 wrote:

I'm on mobile, so can't easily read the code. But it seems like the save code is a list of coordinates? Or am I wrong?
that is a decent way to do it but it is kinda weird to encode and decode lol
Yeah, I'm trying to fit all the coordinates of the pen's xs and ys and colors and brightnesses and blah blah blah into one code to copy. One part is fixed but it takes so much time to LOAD!
If you want the code to be shorter, maybe start by storing the colour of every pixel, but not their coordinates. So, as a simplified example,
x=5, y=1, colour=red
would become
white, white, white, white, red
This'll make more complex images have a simpler code. There are ways to compress it even further, but this would probably be a good start.
weihuhu
Scratcher
47 posts

Help creating save code!

It's fixed in v0.6!
it's here:
https://scratch.mit.edu/projects/1196423119/

Powered by DjangoBB