Post

PROGRAMANCER
PROGRAMANCER@Programancer·
So, bad wrapping typewriter text is a HUGE pet peeve of mine, and it seems like both AAA AND Indie devs fall into this trap, but with some very very simple code that checks the length of your next word you can solve the problem. I threw this together in < 10 minutes! #gamedev
English
57
596
3K
0
PROGRAMANCER
PROGRAMANCER@Programancer·
Also I mentioned this years ago being a horrible horrible trend, and someone said it's "really difficult to make text properly wrap while typing", but that person is SUPER WRONG haha
English
0
0
0
0
Pens 'n' Pixels
Pens 'n' Pixels@Pens_n_Pixels·
@Programancer It's even worse when for some reason it's centre-aligned and typing-out. Like, NO. IT DOESN'T WORK THAT WAY. XD
English
0
0
0
0
Edward Di Geronimo
Edward Di Geronimo@EdDiGeronimo·
@Programancer If you are doing the text layout yourself, it's super easy to do. If you're using a text box from a UI toolkit, it tends to be a pain. I had to fix that in a Unity game recently and it took me a bit to figure out a way to make it work.
English
0
0
0
0
Paylaş