|Topic was automatically imported from the old Question2Answer platform.
For design reasons I would like to make individual chars/letters in a string fade-in into the dialogbox with animation player, one by one.
So imagine the string: “Hello”
I would like to see H transits from 1,1,1,0 opacity to 1,1,1,1 opacity. Something like
var text = "Hello"
#In the animation player text gets modulate of (1,1,1,1) after let say 1 sec.
Once that is done in the animation player. The next letter which is “e” should transits from 1,1,1,0 opacity to 1,1,1,1 opacity, this repeats till every letter of Hello is animated.
Problem is I can’t give individual char the proper property, let alone a key and value in the AnimationPlayer. Only the whole string “Hello” can fade in and fade out…
How to solve this? I don’t think creating labelboxes for every char forming a sentence is the solution…
On Twitter recently, I saw someone create a wavy text effect in their dialogue box. They did it by using an individual label per character, and animating the individual labels. Might be the easiest way.
Diet Estus | 2019-02-17 23:50
Don’t know whether this will solve your problem. You could use a
RichTextLabel and edit each of the colors of the individual letters (or at least as the letters are printed out in the text box).
May not be a solution, but at least it’s a start.
Ertain | 2019-02-18 00:24
Problem is I can’t give individual char the proper property
Pretty sure creating a
Label for every character is the solution.
Eric Ellingson | 2019-02-18 05:40