[gd_scene load_steps=24 format=3 uid="uid://crkn3sn23sw2w"] [ext_resource type="PackedScene" uid="uid://doq56c8p5sddy" path="res://Scenes/character.tscn" id="1_1lc2k"] [ext_resource type="Texture2D" uid="uid://4n07c0wfw15e" path="res://Sprites/0x72_DungeonTilesetII_v1.7/Tiny RPG Character Asset Pack v1.03 -Free Soldier&Orc/Characters(100x100)/Soldier/Soldier/Soldier-Idle.png" id="2_7nvhq"] [ext_resource type="Script" path="res://Scripts/player.gd" id="2_u8s84"] [ext_resource type="Texture2D" uid="uid://cfm0ovqev1xfp" path="res://Sprites/0x72_DungeonTilesetII_v1.7/Tiny RPG Character Asset Pack v1.03 -Free Soldier&Orc/Characters(100x100)/Soldier/Soldier/Soldier-Walk.png" id="3_bm1ig"] [sub_resource type="AtlasTexture" id="AtlasTexture_sxs47"] atlas = ExtResource("2_7nvhq") region = Rect2(0, 0, 100, 100) [sub_resource type="AtlasTexture" id="AtlasTexture_nfeja"] atlas = ExtResource("2_7nvhq") region = Rect2(100, 0, 100, 100) [sub_resource type="AtlasTexture" id="AtlasTexture_tahcy"] atlas = ExtResource("2_7nvhq") region = Rect2(200, 0, 100, 100) [sub_resource type="AtlasTexture" id="AtlasTexture_a4ltx"] atlas = ExtResource("2_7nvhq") region = Rect2(300, 0, 100, 100) [sub_resource type="AtlasTexture" id="AtlasTexture_ynfsx"] atlas = ExtResource("2_7nvhq") region = Rect2(400, 0, 100, 100) [sub_resource type="AtlasTexture" id="AtlasTexture_08xxh"] atlas = ExtResource("2_7nvhq") region = Rect2(500, 0, 100, 100) [sub_resource type="AtlasTexture" id="AtlasTexture_ltq47"] atlas = ExtResource("3_bm1ig") region = Rect2(0, 0, 100, 100) [sub_resource type="AtlasTexture" id="AtlasTexture_f3u28"] atlas = ExtResource("3_bm1ig") region = Rect2(100, 0, 100, 100) [sub_resource type="AtlasTexture" id="AtlasTexture_b8nwg"] atlas = ExtResource("3_bm1ig") region = Rect2(200, 0, 100, 100) [sub_resource type="AtlasTexture" id="AtlasTexture_54djb"] atlas = ExtResource("3_bm1ig") region = Rect2(300, 0, 100, 100) [sub_resource type="AtlasTexture" id="AtlasTexture_uhw5x"] atlas = ExtResource("3_bm1ig") region = Rect2(400, 0, 100, 100) [sub_resource type="AtlasTexture" id="AtlasTexture_v2l5i"] atlas = ExtResource("3_bm1ig") region = Rect2(500, 0, 100, 100) [sub_resource type="AtlasTexture" id="AtlasTexture_0d17x"] atlas = ExtResource("3_bm1ig") region = Rect2(600, 0, 100, 100) [sub_resource type="AtlasTexture" id="AtlasTexture_w11dl"] atlas = ExtResource("3_bm1ig") region = Rect2(700, 0, 100, 100) [sub_resource type="SpriteFrames" id="SpriteFrames_63alt"] animations = [{ "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_sxs47") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_nfeja") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_tahcy") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_a4ltx") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_ynfsx") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_08xxh") }], "loop": true, "name": &"idle", "speed": 5.0 }, { "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_ltq47") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_f3u28") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_b8nwg") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_54djb") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_uhw5x") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_v2l5i") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_0d17x") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_w11dl") }], "loop": true, "name": &"move", "speed": 5.0 }] [sub_resource type="Animation" id="Animation_ij0v7"] resource_name = "idle" length = 0.6 loop_mode = 1 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath("AnimatedSprite2D:animation") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "times": PackedFloat32Array(0), "transitions": PackedFloat32Array(1), "update": 1, "values": [&"idle"] } tracks/1/type = "value" tracks/1/imported = false tracks/1/enabled = true tracks/1/path = NodePath("AnimatedSprite2D:frame") tracks/1/interp = 1 tracks/1/loop_wrap = true tracks/1/keys = { "times": PackedFloat32Array(0, 0.1, 0.2, 0.3, 0.4, 0.5), "transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1), "update": 1, "values": [0, 1, 2, 3, 4, 5] } [sub_resource type="Animation" id="Animation_fsrxx"] length = 0.001 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath("AnimatedSprite2D:animation") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "times": PackedFloat32Array(0), "transitions": PackedFloat32Array(1), "update": 1, "values": [&"idle"] } tracks/1/type = "value" tracks/1/imported = false tracks/1/enabled = true tracks/1/path = NodePath("AnimatedSprite2D:frame") tracks/1/interp = 1 tracks/1/loop_wrap = true tracks/1/keys = { "times": PackedFloat32Array(0), "transitions": PackedFloat32Array(1), "update": 1, "values": [5] } [sub_resource type="Animation" id="Animation_7eoo7"] resource_name = "walk" tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath("AnimatedSprite2D:animation") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "times": PackedFloat32Array(0), "transitions": PackedFloat32Array(1), "update": 1, "values": [&"move"] } tracks/1/type = "value" tracks/1/imported = false tracks/1/enabled = true tracks/1/path = NodePath("AnimatedSprite2D:frame") tracks/1/interp = 1 tracks/1/loop_wrap = true tracks/1/keys = { "times": PackedFloat32Array(-0.0666667, -0.0333333, 0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7), "transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1), "update": 1, "values": [0, 0, 0, 1, 2, 3, 4, 5, 6, 7] } [sub_resource type="AnimationLibrary" id="AnimationLibrary_i3t58"] _data = { "RESET": SubResource("Animation_fsrxx"), "idle": SubResource("Animation_ij0v7"), "walk": SubResource("Animation_7eoo7") } [node name="Player" instance=ExtResource("1_1lc2k")] script = ExtResource("2_u8s84") acceleration = null max_speed = null [node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="." index="0"] sprite_frames = SubResource("SpriteFrames_63alt") animation = &"idle" frame = 5 [node name="CollisionShape2D" type="CollisionShape2D" parent="AnimatedSprite2D" index="0"] [node name="AnimationPlayer" type="AnimationPlayer" parent="." index="1"] libraries = { "": SubResource("AnimationLibrary_i3t58") }