FuncIt/Game/source/assets/scripts/ui-element-handlers/username_text.gd
Alan Alexander Cerna bde1f29107 [Major] Finished product development - Stage I
The activation of finished product development in a combined development environment.
2021-11-02 13:54:16 +02:00

16 lines
294 B
GDScript

extends Node2D
var player_following = null
var text = "" setget text_set
onready var label = $Label
func _process(delta: float) -> void:
if player_following != null:
global_position = player_following.global_position
func text_set(new_text) -> void:
text = new_text
label.text = text