Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- extends Label
- var greeted = false
- func _ready():
- var a = set_text("what is your name?")
- pass
- func _on_LineEdit_text_entered( text ):
- if not greeted:
- greeting(text)
- greeted = true
- else:
- _parse( text )
- func _parse( text ):
- var txt_list = text.split(" ")
- #process txt_list
- func greeting(text):
- set_text("Hi there Mr."+ text +" *** better watch out! n\ The Nudge Nudge guy is coming***")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement