diff --git a/scenes/heroes/0.tscn b/scenes/heroes/0.tscn index a5f27be..39d98d4 100644 --- a/scenes/heroes/0.tscn +++ b/scenes/heroes/0.tscn @@ -3,8 +3,14 @@ [ext_resource path="res://scenes/player.tscn" type="PackedScene" id=1] [ext_resource path="res://scripts/heroes/0.gd" type="Script" id=2] -[node name="RigidBody" index="0" instance=ExtResource( 1 )] +[node name="RigidBody" instance=ExtResource( 1 )] +contacts_reported = 1 +contact_monitor = true script = ExtResource( 2 ) +[node name="Ray" parent="Yaw/Pitch" index="1"] + +_sections_unfolded = [ "Pause", "Transform", "Visibility" ] + diff --git a/scenes/heroes/2.tscn b/scenes/heroes/2.tscn index 25d98f8..4c18b4f 100644 --- a/scenes/heroes/2.tscn +++ b/scenes/heroes/2.tscn @@ -7,8 +7,9 @@ radius = 7.0 -[node name="RigidBody" instance=ExtResource( 1 )] +[node name="RigidBody" index="0" instance=ExtResource( 1 )] +collision_layer = 4 script = ExtResource( 2 ) [node name="Crosshair" parent="MasterOnly" index="0"] @@ -22,9 +23,9 @@ anchor_top = 0.5 anchor_right = 0.5 anchor_bottom = 0.5 margin_left = -20.0 -margin_top = -34.0 +margin_top = -7.0 margin_right = 20.0 -margin_bottom = -20.0 +margin_bottom = 7.0 rect_pivot_offset = Vector2( 0, 0 ) mouse_filter = 2 mouse_default_cursor_shape = 0 diff --git a/scripts/heroes/2.gd b/scripts/heroes/2.gd index 6adb102..c4266c7 100644 --- a/scripts/heroes/2.gd +++ b/scripts/heroes/2.gd @@ -9,9 +9,9 @@ func _process(delta): rpc("switch_gravity") is_repelling = !is_repelling if is_repelling: - get_node("RepellingHUD").set_text("/\\") + get_node("MasterOnly/RepellingHUD").set_text("/\\") else: - get_node("RepellingHUD").set_text("\\/") + get_node("MasterOnly/RepellingHUD").set_text("\\/") sync func switch_gravity(): var area = get_node("Area")