Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - SonyUSA

Pages: [1]
1
Graphics / Request: Weaponized Text Wrapping Example
« on: May 20, 2016, 01:20:59 am »
I see many posts of people asking for this, and almost all of them are people linking to other (sometimes dead) threads or people saying "yahoo I got it" but not posting examples. Laurent says to:

"Otherwise, short answer: compute the position of every character (text.findCharacterPos) and insert a line break when the position exceeds the width of the container."

However I'm extremely new to coding. I'm trying to port my visual novel homebrew game over from 3DS (written in C), but the library on there has a very simple function where you define a rectangle size, position, and character limit and it just kinda does the rest for you.

I was wondering if anyone could take the time to throw together a working example of text wrapping (and maybe as a bonus changing the rendered string with a button press or something?) for all of us beginners @.@ It's pretty much the only thing I'm stuck at currently to finish porting over my game...

Pages: [1]
anything