64 lines
1.9 KiB
Text
64 lines
1.9 KiB
Text
[gd_scene load_steps=7 format=3 uid="uid://hadbyy62vq5i"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://dequ0ve5i7ir1" path="res://Assets/Visual/Environments/moving_platform.png" id="1_qjg3h"]
|
|
[ext_resource type="Script" uid="uid://58ppxtqvgxmy" path="res://Scripts/Generic/animation_player_play_loop.gd" id="2_gl7w6"]
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_8qe87"]
|
|
size = Vector2(32, 8)
|
|
|
|
[sub_resource type="Animation" id="Animation_qjg3h"]
|
|
length = 0.001
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("CharacterBody2D:position")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 0,
|
|
"values": [Vector2(0, 64)]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_8lwus"]
|
|
resource_name = "loop"
|
|
length = 6.0
|
|
loop_mode = 1
|
|
step = 0.1
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("CharacterBody2D:position")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 3),
|
|
"transitions": PackedFloat32Array(1, 1),
|
|
"update": 0,
|
|
"values": [Vector2(0, 0), Vector2(0, 64)]
|
|
}
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_mtr6x"]
|
|
_data = {
|
|
&"RESET": SubResource("Animation_qjg3h"),
|
|
&"loop": SubResource("Animation_8lwus")
|
|
}
|
|
|
|
[node name="MovingPlatform" type="Node2D"]
|
|
|
|
[node name="CharacterBody2D" type="CharacterBody2D" parent="."]
|
|
position = Vector2(0, 64)
|
|
|
|
[node name="Sprite2D" type="Sprite2D" parent="CharacterBody2D"]
|
|
texture = ExtResource("1_qjg3h")
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="CharacterBody2D"]
|
|
position = Vector2(0, -4)
|
|
shape = SubResource("RectangleShape2D_8qe87")
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
|
libraries = {
|
|
&"": SubResource("AnimationLibrary_mtr6x")
|
|
}
|
|
script = ExtResource("2_gl7w6")
|