torso not lost on scene transition
This commit is contained in:
1 parent
8a82a2833f
commit
eeee538703
4 files changed
+10
-7
No files matched your search
@@ -6,7 +6,7 @@
|
||||
|
||||
[node name="Body Builder Menu" type="Spatial"]
|
||||
script = ExtResource( 2 )
|
||||
torsoPath = NodePath("Torso")
|
||||
torsoPath = NodePath("Player")
|
||||
cameraPath = NodePath("GUI/HBoxC/ViewportContainer/Viewport/Camera")
|
||||
rayCastPath = NodePath("GUI/HBoxC/ViewportContainer/Viewport/MouseLook")
|
||||
viewPortPath = NodePath("GUI/HBoxC/ViewportContainer/Viewport")
|
||||
@@ -65,7 +65,5 @@ enabled = true
|
||||
collide_with_areas = true
|
||||
collide_with_bodies = false
|
||||
|
||||
[node name="Torso" parent="." instance=ExtResource( 1 )]
|
||||
[node name="Player" parent="." instance=ExtResource( 1 )]
|
||||
[connection signal="pressed" from="GUI/HBoxC/VBoxC/Start" to="." method="_on_Start_pressed"]
|
||||
|
||||
[editable path="Torso"]
|
||||
@@ -124,4 +124,4 @@ func delete_body_part():
|
||||
func _on_Start_pressed():
|
||||
PhysicsServer.area_set_param(get_viewport().find_world().get_space(), PhysicsServer.AREA_PARAM_GRAVITY, _default_grav)
|
||||
|
||||
emit_signal("start_fight")
|
||||
emit_signal("start_fight", _torso)
|
||||
Reference in new issue
Block a user