question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Whenever I program with Scratch, blocks being too long is always a problem. For example, here are some scripts from my more complicated projects:

Scratch Demo 1

Scratch Demo 2

And I’ve seen them get much longer than that.

(For reference, Snap! does use block wrapping, so having the editor open while reading this might be useful…)

I think it would be helpful if (vertical) blocks would automatically re-layout themselves when they start becoming pretty long, so that you can see them all in a conveniently short (but still long enough to work with) space.

This would also probably help with organizing scripts - “clean up” would make columns of more similar width.

Here’s what the example scripts above look like in Snap!:

Snap Demo 1

However, block wrapping brings up a couple of questions. What should we do with input literals?

In Snap!, they don’t wrap at all:

Snap Demo 2

It’s possible that we could make inputs wrap like normal blocks on the inside.

For a more internal question - should blocks have specific line break points, or should breaks happen dynamically? Or should there be a combination of both?

Here’s an example in Snap! with manual line breaking (I added %brs to the spec of the blocks):

Snap Demo 3

Snap Demo 4

They definitely look better than before.

But then you get this, when there aren’t any input values:

Snap Demo 5

Snap Demo 6

…which doesn’t look so great. So it’s a little puzzling, exactly how manual/dynamic breaks should be handled…

Here’s the project.xml download for the demo Snap! project: http://www.mediafire.com/download/6iu71f1737kqqok/Wrapping_Demos.xml

And of course this is just all an idea. 😃

(Edit 2018 03 18: Formatting fixes.)

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:8
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
CatsAreFluffycommented, Sep 25, 2016

What about a right-click option for showing the block in the palette?

1reaction
towerofnixcommented, Sep 30, 2016

Possibly a smooth animated scroll to where it is in the palette (if you have the category selected) to give you a better idea of where it is relative to other blocks?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Building Blocks Birthday Wrapping Paper - Amazon.com
Surprise a little builder on their big day with a gift wrapped with this building blocks birthday wrapping paper. Featuring a bright and...
Read more >
Building Blocks Wrapping Paper - Zazzle
Wrap up your gifts with Building Blocks wrapping paper from Zazzle. Choose from thousands of popular designs or create your own personalized wrapping...
Read more >
Building Blocks Wrapping Paper Roll - Walmart.com
Fans of the interlocking toy blocks will love seeing their birthday present all wrapped up in this bright block gift paper. Complete your...
Read more >
Gift Wrapping for Custom Block Sets - Uncle Goose
Choose one of our 2 custom printed wrapping paper design. ... are spelling with your custom letter blocks, so we can make sure...
Read more >
Color Block Wrapping - Etsy
Check out our color block wrapping selection for the very best in unique or custom, handmade pieces from our shops.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found