1
0
Fork 0
1bit-godot-course/metroidvania/Scenes/World/MovingPlatform.tscn

61 lines
1.5 KiB
Plaintext

[gd_scene load_steps=5 format=2]
[ext_resource path="res://Assets/World/MovingPlatform.png" type="Texture" id=1]
[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 16, 4 )
[sub_resource type="Curve2D" id=2]
_data = {
"points": PoolVector2Array( 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -32, 0, 0, 0, 0, 0, -64 )
}
[sub_resource type="Animation" id=3]
resource_name = "Loop"
length = 4.0
loop = true
step = 1.0
tracks/0/type = "value"
tracks/0/path = NodePath("Path2D/PathFollow2D:unit_offset")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 2 ),
"transitions": PoolRealArray( -2, -2 ),
"update": 0,
"values": [ 0.0, 1.0 ]
}
[node name="MovingPlatform" type="Node2D"]
__meta__ = {
"_edit_group_": true
}
[node name="KinematicBody2D" type="KinematicBody2D" parent="."]
collision_layer = 2
motion/sync_to_physics = true
[node name="Sprite" type="Sprite" parent="KinematicBody2D"]
texture = ExtResource( 1 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="KinematicBody2D"]
shape = SubResource( 1 )
one_way_collision = true
[node name="Path2D" type="Path2D" parent="."]
curve = SubResource( 2 )
[node name="PathFollow2D" type="PathFollow2D" parent="Path2D"]
rotate = false
loop = false
[node name="RemoteTransform2D" type="RemoteTransform2D" parent="Path2D/PathFollow2D"]
remote_path = NodePath("../../../KinematicBody2D")
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
autoplay = "Loop"
playback_process_mode = 0
anims/Loop = SubResource( 3 )