Skip to content

Commit

Permalink
fix: Problems with multiplayer-simple example (#134)
Browse files Browse the repository at this point in the history
Fixes connect_ui in the bootstrappers and players spawning at the same spot.
  • Loading branch information
zibetnu authored Nov 25, 2023
1 parent 948eab2 commit a09e86f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/multiplayer-simple/characters/player.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ properties/0/sync = true
properties/0/watch = false

[node name="Player" type="CharacterBody3D"]
collision_mask = 2
script = ExtResource("1_52uoj")

[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
Expand Down
7 changes: 7 additions & 0 deletions examples/multiplayer-simple/multiplayer-simple.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ sky = SubResource("Sky_g0uhm")

[node name="CSGCombiner3D" type="CSGCombiner3D" parent="Map"]
use_collision = true
collision_layer = 2

[node name="CSGFloor" type="CSGBox3D" parent="Map/CSGCombiner3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.25, 0)
Expand Down Expand Up @@ -77,6 +78,12 @@ spawn_point = Vector3(0, 1, 0)

[node name="Network Popup" parent="Network" instance=ExtResource("1_0btv1")]

[node name="LAN Bootstrapper" parent="Network/Network Popup" index="3" node_paths=PackedStringArray("connect_ui")]
connect_ui = NodePath("..")

[node name="Noray Bootstrapper" parent="Network/Network Popup" index="4" node_paths=PackedStringArray("connect_ui")]
connect_ui = NodePath("..")

[node name="Players" type="Node" parent="."]

[editable path="Network/Network Popup"]

0 comments on commit a09e86f

Please sign in to comment.