- Edited
TheRedPandaKing Sorry idk how to make all code stuff :/
To post code here:
A. Type ~~~
on a line by itself, before the code.
B. Copy/paste the code from the Godot editor.
C. Type ~~~
on a line by itself, after the code.
TheRedPandaKing add boundary's like a word limit and a unexpected like special characters when typing the username
By "word limit" do you mean character limit? Do you want to limit the length of the username that the user can type? You can do that by setting the LineEdit's max_length property.
What do you want to do if the user types special characters? Discard them? Display an error message to the user?
TheRedPandaKing it says "null instanace" when i run the code. to the text_changed.connect(_on_username_input_text_changed) line why is that?
- I can't see your whole project, and I can't copy/paste from a screenshot. My guess, since you're using % instead of $, is that the usernameEntry node is not a child of the node to which that script is attached, and it's not "ready" yet, so you can't reference it in that script's _ready().