Playmaker Forum

PlayMaker Feedback => Action Requests => Topic started by: Alatriste on August 15, 2017, 07:50:25 AM

Title: String Typewriter - Cutting words
Post by: Alatriste on August 15, 2017, 07:50:25 AM
Hi,

I'm using the String Typewriter effect to write some texts in a iGUI text box. However what happens many times is that the words close to the limit of the border of the box get cut and jump to the next line. The effect is not nice and I was wondering whether there is away to improve it.

For instance, if I write a sentence. "Hello, This is a test" but the text box is smaller than the whole text, what happens is that I'll see this: "Hello, This is a te" in the line, and right after "Hello, This is a (in the first line) test (in the second line).

Does it make sense? "Test" will start writing in the first line, but because there is not enough space, it will jump to the second line.

Edit: I have been investigating and aparently there is a script that makes something similar in the templates of TextMeshPro. Is there anyway to implement it to the existing Typewriter effect?
Title: Re: String Typewriter - Cutting words
Post by: djaydino on August 16, 2017, 09:22:58 PM
Hi,
i have an idea but i would need to know the maximum length somehow

can you show that script from textmesh?
Title: Re: String Typewriter - Cutting words
Post by: Alatriste on August 17, 2017, 03:39:08 AM
Sure, here it is.
Title: Re: String Typewriter - Cutting words
Post by: djaydino on August 19, 2017, 01:18:49 AM
hi,
Is the text box going to be a fixed size?
Title: Re: String Typewriter - Cutting words
Post by: Alatriste on August 19, 2017, 06:03:49 AM
Yes. Once I setup the box the size will be always the same.
Title: Re: String Typewriter - Cutting words
Post by: djaydino on August 20, 2017, 03:08:39 AM
Hi,
Just to let you know, i'm working on it.
but there are still some issues.
Title: Re: String Typewriter - Cutting words
Post by: Alatriste on August 20, 2017, 04:36:13 AM
Thanks a lot djaydino. :)
I think it can be a nice addition to the existing action.
Title: Re: String Typewriter - Cutting words
Post by: djaydino on August 31, 2017, 02:14:54 AM
Hi,
Sorry that it takes so long, but i have several issues with the rich text part(<b></b> stuff)
so i think i might need to rebuild this.
Title: Re: String Typewriter - Cutting words
Post by: Alatriste on August 31, 2017, 09:16:11 AM
Thanks for the update!
Title: Re: String Typewriter - Cutting words
Post by: Alatriste on September 19, 2017, 05:31:36 PM
Hi djaydino,

I just needed this action to finish my little game, so I finally asked a friend to do something I could use, as I couldn't wait any longer. Maybe you can use it to improve it.

http://hutonggames.com/playmakerforum/index.php?topic=15820.0

Thanks a lot for your interest. I really appreciate it.