Skip to content
This repository was archived by the owner on Sep 15, 2024. It is now read-only.

Commit 91f2c84

Browse files
track client-side position on ui
1 parent f63efe0 commit 91f2c84

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

Scenes/Prefabs/ClientPlayer.tscn

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ font_data = ExtResource( 1 )
1111
texture = ExtResource( 3 )
1212
script = ExtResource( 2 )
1313
NodePathLabelUsername = NodePath("Username")
14+
NodePathLabelPosition = NodePath("Position")
1415

1516
[node name="Username" type="Label" parent="."]
1617
anchor_left = 0.5
@@ -29,3 +30,20 @@ __meta__ = {
2930

3031
[node name="Camera2D" type="Camera2D" parent="."]
3132
current = true
33+
34+
[node name="Position" type="Label" parent="."]
35+
anchor_left = 0.5
36+
anchor_top = 1.0
37+
anchor_right = 0.5
38+
anchor_bottom = 1.0
39+
margin_left = -43.0
40+
margin_top = -11.0
41+
margin_right = 11.0
42+
margin_bottom = 3.0
43+
grow_horizontal = 2
44+
rect_min_size = Vector2( 300, 0 )
45+
text = "x: 0, y: 0"
46+
align = 1
47+
__meta__ = {
48+
"_edit_use_anchors_": false
49+
}

0 commit comments

Comments
 (0)