a game about throwing hammers made for the github game off
Diffstat (limited to 'world/moving_platform/moving_platform.tscn')
| -rw-r--r-- | world/moving_platform/moving_platform.tscn | 29 |
1 files changed, 14 insertions, 15 deletions
diff --git a/world/moving_platform/moving_platform.tscn b/world/moving_platform/moving_platform.tscn index e170949..0dc8bba 100644 --- a/world/moving_platform/moving_platform.tscn +++ b/world/moving_platform/moving_platform.tscn @@ -2,15 +2,10 @@ [ext_resource type="Script" path="res://world/moving_platform/moving_platform.gd" id="1_0sweg"] [ext_resource type="Texture2D" uid="uid://cdg0t1suvcfmt" path="res://assets/world/moving_platform.png" id="1_43vys"] - -[sub_resource type="Curve2D" id="Curve2D_jodtc"] -_data = { -"points": PackedVector2Array(0, 0, 0, 0, 0, 0) -} -point_count = 1 +[ext_resource type="Script" path="res://world/one_way_platform.gd" id="2_fhxgs"] [sub_resource type="RectangleShape2D" id="RectangleShape2D_0ri1c"] -size = Vector2(34, 10) +size = Vector2(32, 10) [sub_resource type="Animation" id="Animation_oma2q"] resource_name = "play" @@ -18,7 +13,7 @@ loop_mode = 1 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true -tracks/0/path = NodePath("follower:progress_ratio") +tracks/0/path = NodePath("s:progress_ratio") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { @@ -34,21 +29,25 @@ _data = { } [node name="MovingPlatform" type="Path2D"] -curve = SubResource("Curve2D_jodtc") script = ExtResource("1_0sweg") -[node name="follower" type="PathFollow2D" parent="."] -position = Vector2(0, 5) +[node name="s" type="PathFollow2D" parent="."] rotates = false loop = false -[node name="platf" type="AnimatableBody2D" parent="follower"] -position = Vector2(0, -5) +[node name="transfer" type="RemoteTransform2D" parent="s"] +remote_path = NodePath("../../platf") + +[node name="platf" type="AnimatableBody2D" parent="." node_paths=PackedStringArray("shape")] +collision_layer = 128 +collision_mask = 128 +script = ExtResource("2_fhxgs") +shape = NodePath("CollisionShape2D") -[node name="sprite" type="Sprite2D" parent="follower/platf"] +[node name="sprite" type="Sprite2D" parent="platf"] texture = ExtResource("1_43vys") -[node name="CollisionShape2D" type="CollisionShape2D" parent="follower/platf"] +[node name="CollisionShape2D" type="CollisionShape2D" parent="platf"] visible = false shape = SubResource("RectangleShape2D_0ri1c") one_way_collision = true |