Godot Version
stable-4.4
Question
Using scrolling text makes autowrap only activate for a word once its character reaches the edge of the text box, which then moves the entire word into the new line. This looks awkward.
I am aware that I can put \n in the text to force the new line, but I will be working with too much text to settle for something so inefficient. Is there a way to have the text recognize when a word is going to create a new line, and include the \n before the word begins to show?
(code for the demonstration in the video, mostly irrelevant)
extends Node2D
func _ready() -> void:
$RichTextLabel.visible_characters = 0
func _process(_delta: float) -> void:
if Input.is_action_just_pressed('a'):
$Timer.start()
func _on_timer_timeout() -> void:
$RichTextLabel.visible_characters += 1