How can I make a console hacking looking label

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By MaaaxiKing

I have a Sprite that looks like a Monitor and it has a Label child. I want that every frame one completely random character (at the moment, I don’t care they can be weird signs or just english letters and numbers) is written into the label’s text and when the Label reached the monitor’s display size, it should scroll down.

:bust_in_silhouette: Reply From: JimArtificer

Consider switching the label to a RichTextLabel, which has scrolling functionality.

To have the label perform an action each frame you will need to attach a script to the _process function. Though I would recommend that you add a check based on some sort of duration or timer value so that the visuals are frame rate independent.

# Called every frame, even when the engine detects no input.
func _process(delta):
  # your code here