Perfect Word Wrap | Epic Scratch Text Engine @griffpatch
Perfect Word Wrap | Epic Scratch Text Engine  @griffpatch
Uploaded August 2022 | Updated September 2026, 3 weeks ago
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!

🚀 *Boost Your Creativity with Griffpatch*
The Griffpatch Academy will take you from "Gamer to Game Creator"
Learn more at 👉 https://griffpatch.academy 👈

😺 Scratch was developed by the Lifelong Kindergarten Group at the MIT Media Lab. See http://scratch.mit.edu

👀 Episode 1 - youtu.be/BAy0SUnB1J0
👀 Episode 2 - youtu.be/lhHLAQSzQvo

🐱 Scratch Links
Scratch Font Studio - https://scratch.mit.edu/studios/31947389

💾 Font Resource Websites
Cava's Pixel Resource - caveras.net
Google Fonts - fonts.google.com

✂️ Image / Sprite sheet Splitter
EZGif - ezgif.com/sprite-cutter
Google Font to SVG Path - 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
Perfect Word Wrap | Epic Scratch Text EngineSpace Shooter 2 - Enemy CollisionsSpeed Run with Outtakes | Getting Over It | 4 minutes 30 secondsAnimate Your Text #3 - Perfect Pages | Scratch TutorialScratch 3 Dev Tools Browser Extension by griffpatchThe Best Games from Scratch Game Jam, May 2024 🏆 Griffpatch AcademyBurrow Blitz - A game by GriffpatchScratch RPG | Devlog #02 | Tile Layering & CollisionsMMO Platformer Speedrun ChallengeJourney Into The Unknown - Scratch Game Jam ResultsCode a Multiplayer Scratch Game | JOINING | Episode 2AMAZING HEALTH BARS in Scratch - Easy Scratch Tutorial
griffpatch |

Perfect Word Wrap | Epic Scratch Text Engine

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER