0 votes

Hello. I want to make something like:

1- You write a text in "LineEdit" node and press enter,
2- Then the text you've written appears at the bottom, on the "Label" node (i guess) with different letters.

For example let's say that you write "allegory". When you press enter, it will be shown as "@ll£g0ry".

I know it sounds stupid but that's the main piece of the actual idea :)

But I can't even transfer the text yet. Changing letters is the second part. Can you guys help me with that?

in Engine by (12 points)

To have the text from one node go to another node, reference one node from an attached script, and use signals where necessary.

For example, a script attached to a LineEdit node, with a Label node and a regular Button node:

var text
# The Label node
var label = $Label

# This is an emitted signal from the Button
func _on_Button_pressed():
      text = change_text (get_text())

The Button signal can be set from the Inspector.

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.