playMaker

Author Topic: String Typewriter - Cutting words  (Read 411 times)

Alatriste

  • Full Member
  • ***
  • Posts: 112
    • View Profile
String Typewriter - Cutting words
« on: August 15, 2017, 04: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?
« Last Edit: August 16, 2017, 09:59:12 AM by Alatriste »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 2247
    • View Profile
    • jinxtergames
Re: String Typewriter - Cutting words
« Reply #1 on: August 16, 2017, 06: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?

Alatriste

  • Full Member
  • ***
  • Posts: 112
    • View Profile
Re: String Typewriter - Cutting words
« Reply #2 on: August 17, 2017, 12:39:08 AM »
Sure, here it is.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 2247
    • View Profile
    • jinxtergames
Re: String Typewriter - Cutting words
« Reply #3 on: August 18, 2017, 10:18:49 PM »
hi,
Is the text box going to be a fixed size?

Alatriste

  • Full Member
  • ***
  • Posts: 112
    • View Profile
Re: String Typewriter - Cutting words
« Reply #4 on: August 19, 2017, 03:03:49 AM »
Yes. Once I setup the box the size will be always the same.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 2247
    • View Profile
    • jinxtergames
Re: String Typewriter - Cutting words
« Reply #5 on: August 20, 2017, 12:08:39 AM »
Hi,
Just to let you know, i'm working on it.
but there are still some issues.

Alatriste

  • Full Member
  • ***
  • Posts: 112
    • View Profile
Re: String Typewriter - Cutting words
« Reply #6 on: August 20, 2017, 01:36:13 AM »
Thanks a lot djaydino. :)
I think it can be a nice addition to the existing action.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 2247
    • View Profile
    • jinxtergames
Re: String Typewriter - Cutting words
« Reply #7 on: August 30, 2017, 11:14:54 PM »
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.

Alatriste

  • Full Member
  • ***
  • Posts: 112
    • View Profile
Re: String Typewriter - Cutting words
« Reply #8 on: August 31, 2017, 06:16:11 AM »
Thanks for the update!

Alatriste

  • Full Member
  • ***
  • Posts: 112
    • View Profile
Re: String Typewriter - Cutting words
« Reply #9 on: September 19, 2017, 02: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.