Perfect Word Wrap | Epic Scratch Text Engine
https://www.youtube.com/watc...Coding a custom text engine in Scratch, a Griffpatch tutorial - and now we add perfect word wrapping. We don't skip any corners, and we do this the right way resulting is super fast, word wrap with line breaks and the ability to break long words if necessary. Word wrap and text alignment is upgraded to work within a specified page bounds and can be coded to work like a text console. Works with clones or switch to stamping to easily handle a whole page of text at 30fps. Scratch On Guys!
ā Support this channel (Join for perks like Early Access):
https://www.youtube.com/channel/UCawsI_mlmPA7Cfld-qZhBQA/join
š Episode 1 - https://youtu.be/BAy0SUnB1J0
š Episode 2 - https://youtu.be/lhHLAQSzQvo
š± Scratch Links
Scratch Font Studio - https://scratch.mit.edu/studios/31947389
š¾ Font Resource Websites
Cava's Pixel Resource - https://caveras.net/
Google Fonts - https://fonts.google.com/
āļø Image / Sprite sheet Splitter
EZGif - https://ezgif.com/sprite-cutter
Google Font to SVG Path - https://danmarshall.github.io/google-font-to-svg-path/
--------------Video Chapters--------------
0:00 Intro
0:45 Defining The Page Bounds
4:01 Positioning the text within the Page bounds
6:18 New Line, and Line Height
8:03 Page Width Overflow
9:29 Word Wrap ā But where?
11:15 Quick Tidy up before we add more scripts
12:22 Lots of new variables, and a change of loop
14:36 Find txt wrap index
17:05 Modify the Alignment Script
17:31 Splitting our text at a space character / gap
18:19 Splitting the text at the last space before overflow
19:53 Wrapping the remaining text onto the next line
21:23 Testing Time
22:08 Breaking up very long words
24:30 Outro