How to create custom Text Field in GODOT | Godot Tutorials

preview_player
Показать описание
Hello there, Your wait is over !!
I am again here with another Godot Tutorial- Custom text field in Godot.
text fields are required in almost every game whether you want to take players name or to get any kind of text from the user.
Text Fields are created with the help of 'Line edit' node in Godot, but by default the text field looks awful so, I have shown you how you can customize easily using some images and some basic code.
I have also shown you how to implement text field in to your game.
I hope you will learn something new from this video.
If you like it then don't forgot to share this video with your friends, and also like and subscribe to this channel for more amazing Godot related videos.
--------------------------------------------------------
See these to enhance your visual effects:

1) Create 2D fire in Godot:

2) Grass motion effect using Shaders:

3) Create lightning in Godot:
--------------------------------------------------------
Time Stamp:
(0:00) Overview
(0:15) resource required
(0:26) Creating Text Field scene
(3:16) Writing script for TextField
(3:58) Implementation in Game
(6:18) ending talk
(6:31) My unfinished game ; )
Рекомендации по теме
Комментарии
Автор

Nice tutorial. I would recommend you to put the music down a bit in the future

emeraldworldlp
Автор

Thank you!
I figure I should leave this here for anyone else that ends up here: To convert from a line editor's string, use
var exampleVar = int(lineEditorNode.text)

Liquid_Rigel
Автор

Hi Dicode, I have a question in your clip: CanvasLayer is instanced the last, so how do you give CanvasLayer permission to emit_signal ("get_name" )without giving an error? Because as far as I know, if the World node keeps the connect command in _ready(), and the CanvasLayer holds the emit_signal command, then Godot will give an error: connect..null, because the CanvasLayer has not appeared in the Tree at the time of beginning game.So how can you do that without reporting an error? Looking forward to hearing from you, Dicode. Thank you.

CrynusWo
Автор

Great tutorial!
is it possible to filter the text with letters only? Numbers and symbols wll not be accepted.

pseudo-CraftingTable
Автор

Dicode, If you have time, you can teach me how to create inventory in the simplest way. Because I have watched many video tutorials, but they messed up, and I am self-studying. ^^ Thank you!

CrynusWo