[gd_scene load_steps=8 format=3 uid="uid://wkyv16a73xcj"] [ext_resource type="Script" path="res://Personajes/Personajes.gd" id="1_kuhnk"] [sub_resource type="Animation" id="Animation_w7kiu"] resource_name = "idle" loop_mode = 1 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath("Sprite2D:frame") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "times": PackedFloat32Array(0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8), "transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1, 1, 1, 1), "update": 1, "values": [0, 1, 2, 3, 4, 5, 6, 7, 8] } [sub_resource type="Animation" id="Animation_qguow"] length = 0.001 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath("Sprite2D:frame") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "times": PackedFloat32Array(0), "transitions": PackedFloat32Array(1), "update": 1, "values": [0] } [sub_resource type="Animation" id="Animation_iaoao"] resource_name = "walk" length = 1.7 loop_mode = 1 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath("Sprite2D:frame") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "times": PackedFloat32Array(0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 1, 1.1, 1.2, 1.3, 1.4, 1.5), "transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1), "update": 1, "values": [9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23] } [sub_resource type="Animation" id="Animation_08ni8"] resource_name = "runAngry" length = 1.1 loop_mode = 1 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath("Sprite2D:frame") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "times": PackedFloat32Array(0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1), "transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1), "update": 1, "values": [27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37] } [sub_resource type="Animation" id="Animation_8ehss"] resource_name = "hurt" length = 0.5 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath("Sprite2D:frame") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "times": PackedFloat32Array(0, 0.1, 0.2, 0.3, 0.4), "transitions": PackedFloat32Array(1, 1, 1, 1, 1), "update": 1, "values": [40, 41, 42, 43, 44] } [sub_resource type="AnimationLibrary" id="AnimationLibrary_65iik"] _data = { "RESET": SubResource("Animation_qguow"), "hurt": SubResource("Animation_8ehss"), "idle": SubResource("Animation_w7kiu"), "runAngry": SubResource("Animation_08ni8"), "walk": SubResource("Animation_iaoao") } [node name="Personajes" type="CharacterBody2D" groups=["Personajes"]] script = ExtResource("1_kuhnk") [node name="Sprite2D" type="Sprite2D" parent="."] [node name="CollisionShape2D" type="CollisionShape2D" parent="."] [node name="AnimationPlayer" type="AnimationPlayer" parent="."] autoplay = "idle" libraries = { "": SubResource("AnimationLibrary_65iik") }