Discuss Scratch
- Discussion Forums
- » Suggestions
- » More List Capabilities
- TheBaton
-
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:
Some edits may be needed to improve consistency, but what do you think?
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
-
100+ posts
More List Capabilities
you might also want change list x and y blocks
this would add a lot of blocks to the lists section though
change [list v] x by (10)::listand 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
-
100+ posts
More List Capabilities
I'm guessing they would change the size of the list like how you can drag it into different shapes 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
- TheBaton
-
100+ posts
More List Capabilities
I'm guessing they would change the size of the list like how you can drag it into different shapes 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
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)
- Discussion Forums
- » Suggestions
-
» More List Capabilities