playMaker

Author Topic: Text appear letter by letter  (Read 35111 times)

Tina51129

  • Playmaker Newbie
  • *
  • Posts: 3
Text appear letter by letter
« on: January 30, 2024, 08:44:44 PM »
Hi!

I want my dialogue text to appear letter by letter, and as I searched there is a typewriter action. However, I dont know how to set it. I made my dialogue text using TextMesh Pro UGUI Set.
Is there a way to do this?

LeDisciple

  • Playmaker Newbie
  • *
  • Posts: 36
Re: Text appear letter by letter
« Reply #1 on: February 02, 2024, 08:29:57 PM »
Hi,
Save your "original" string  or text whatever you use (textmeshpro, text, etc.) you can use "getTextMeshPro Text" to save your text to a string , then make sure your UI text is empty and now use a loop  with "Get String Left" or Right if your are using Japanese or Arabic format ;) using your saved string with the "Char Count" increasing each loop and store result string and display this one into your empty Ui text zone and don't forget to use "wait" to get a pause between each display if not you'll get your text shown as whole in 0.001 sec...
« Last Edit: February 02, 2024, 10:00:45 PM by LeDisciple »

Tina51129

  • Playmaker Newbie
  • *
  • Posts: 3
Re: Text appear letter by letter
« Reply #2 on: March 14, 2024, 10:47:16 PM »
Thank you. I still couldnt get it done. The letters only appear seperately, but always on the same spot, so its useless.  Its probably not the right way, but I guess Playmaker have its limits.
I used Set textMeshpro UGUI text by the way, the other one you mentioned didnt work.

Hi,
Save your "original" string  or text whatever you use (textmeshpro, text, etc.) you can use "getTextMeshPro Text" to save your text to a string , then make sure your UI text is empty and now use a loop  with "Get String Left" or Right if your are using Japanese or Arabic format ;) using your saved string with the "Char Count" increasing each loop and store result string and display this one into your empty Ui text zone and don't forget to use "wait" to get a pause between each display if not you'll get your text shown as whole in 0.001 sec...
« Last Edit: March 16, 2024, 08:43:45 AM by Tina51129 »

LeDisciple

  • Playmaker Newbie
  • *
  • Posts: 36
Re: Text appear letter by letter
« Reply #3 on: May 11, 2024, 09:48:58 PM »
Sorry for the delay, long time i didn't get here... I hope you find a solution but in case not with my solution as I said you need to save in a separate string your cumulative string EACH time you are looping and display this one into your textbox. it's maybe that point you forget because if your looping your original string letter by letter thats the reason it's only display on the same spot because you didn't create a phrase but only letters.
« Last Edit: May 11, 2024, 10:00:24 PM by LeDisciple »