Discuss Scratch

TheBaton
Scratcher
100+ posts

More List Capabilities

I think it would be a good idea to allow Scratchers to edit lists visually using the code or allow the player of said project to add to them. So, I present to you some of the included blocks:

resize [list v] x by [10] :: list
resize [list v] y by [10] :: list
set [list v] width to [10] :: list
set [list v] height to [10] :: list
change [list v] x by [10] :: list
change [list v] y by [10] :: list
set [list v] x position to [10] :: list
set [list v] y position to [10] :: list
allow [list v] resize :: list
deny [list v] resize :: list
allow [list v] edit :: list //Think of the ability to add and remove from the list in the editor mode, and imagine if users could do it!
deny [list v] edit :: list

Some edits may be needed to improve consistency, but what do you think?
cloverfly
Scratcher
100+ posts

More List Capabilities

you might also want change list x and y blocks
change [list v] x by (10)::list
and x/y position reporter blocks
([list v] x position::list)
([list v] y position::list)
what do the resize list x/y blocks do? are they like change x/y blocks? if so, then it would make more sense to rename them to “change” to be consistent with the other blocks

this would add a lot of blocks to the lists section though
jmb1293634
Scratcher
100+ posts

More List Capabilities

cloverfly wrote:

what do the resize list x/y blocks do? are they like change x/y blocks? if so, then it would make more sense to rename them to “change” to be consistent with the other blocks
I'm guessing they would change the size of the list like how you can drag it into different shapes
TheBaton
Scratcher
100+ posts

More List Capabilities

jmb1293634 wrote:

cloverfly wrote:

what do the resize list x/y blocks do? are they like change x/y blocks? if so, then it would make more sense to rename them to “change” to be consistent with the other blocks
I'm guessing they would change the size of the list like how you can drag it into different shapes

Yes, that's the idea. I just feel like the ‘hide’ and ‘show’ blocks don't cut it in terms of variable or list design. And we'd probably need a consistency change.
Instead, the resize could be ‘change (list) width by (10)’ and would always expand right, unless given a negative. The same goes for height.

Last edited by TheBaton (Feb. 21, 2025 14:09:54)

AvidOsirianGuy
Scratcher
100+ posts

More List Capabilities

Support, these blocks would be useful
TheBaton
Scratcher
100+ posts

More List Capabilities

Bump

Powered by DjangoBB