|
@@ -15,6 +15,11 @@ export var flip_h = false
|
|
|
|
|
|
var die = false
|
|
|
|
|
|
+func _ready():
|
|
|
+ for x in get_tree().get_nodes_in_group('client'):
|
|
|
+ print( x.usernamelist)
|
|
|
+ $username.text = x.usernamelist[int(name)]
|
|
|
+
|
|
|
func _physics_process(delta):
|
|
|
if die:
|
|
|
$SoldierAnim/AnimationPlayer.play('die4')
|
|
@@ -255,3 +260,12 @@ text1 = ExtResource( 6 )
|
|
|
text2 = ExtResource( 7 )
|
|
|
text3 = ExtResource( 3 )
|
|
|
text4 = ExtResource( 2 )
|
|
|
+
|
|
|
+[node name="username" type="Label" parent="."]
|
|
|
+anchor_right = 1.0
|
|
|
+margin_left = -316.031
|
|
|
+margin_top = -46.0209
|
|
|
+margin_right = 323.969
|
|
|
+margin_bottom = -32.0209
|
|
|
+align = 1
|
|
|
+valign = 1
|