[gd_scene format=3 uid="uid://r3r7jjutl3rr"] [ext_resource type="Script" uid="uid://b6hsmfwiojo55" path="res://Ghost/ghost.gd" id="1_uexgx"] [ext_resource type="Texture2D" uid="uid://b7q046o2x1wlf" path="res://Ghost/gosth.svg" id="2_uexgx"] [sub_resource type="CapsuleShape2D" id="CapsuleShape2D_y32ns"] radius = 4.0 height = 8.0 [sub_resource type="CircleShape2D" id="CircleShape2D_interact"] radius = 12.0 [sub_resource type="Animation" id="Animation_rhyd0"] 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": [1] } [sub_resource type="Animation" id="Animation_uexgx"] resource_name = "idle_down" length = 0.6 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.15, 0.3, 0.45), "transitions": PackedFloat32Array(1, 1, 1, 1), "update": 1, "values": [2, 10, 18, 26] } [sub_resource type="Animation" id="Animation_lky7i"] resource_name = "idle_left" length = 0.6 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.15, 0.3, 0.45), "transitions": PackedFloat32Array(1, 1, 1, 1), "update": 1, "values": [1, 9, 17, 25] } [sub_resource type="Animation" id="Animation_jyk2k"] resource_name = "idle_right" length = 0.6 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.15, 0.3, 0.45), "transitions": PackedFloat32Array(1, 1, 1, 1), "update": 1, "values": [0, 8, 16, 24] } [sub_resource type="Animation" id="Animation_bs0kc"] resource_name = "idle_back" length = 0.6 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.15, 0.3, 0.46666667), "transitions": PackedFloat32Array(1, 1, 1, 1), "update": 1, "values": [3, 11, 19, 27] } [sub_resource type="AnimationLibrary" id="AnimationLibrary_rhyd0"] _data = { &"RESET": SubResource("Animation_rhyd0"), &"idle_down": SubResource("Animation_uexgx"), &"idle_left": SubResource("Animation_lky7i"), &"idle_right": SubResource("Animation_jyk2k"), &"idle_up": SubResource("Animation_bs0kc") } [node name="Ghost" type="CharacterBody2D" unique_id=1558624006] collision_layer = 2 script = ExtResource("1_uexgx") [node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=683509728] position = Vector2(0, 2) shape = SubResource("CapsuleShape2D_y32ns") [node name="Sprite2D" type="Sprite2D" parent="." unique_id=323540923] texture = ExtResource("2_uexgx") hframes = 8 vframes = 6 frame = 1 [node name="AnimationPlayer" type="AnimationPlayer" parent="." unique_id=102281243] libraries/ = SubResource("AnimationLibrary_rhyd0") autoplay = &"idle_right" [node name="InteractionArea" type="Area2D" parent="." unique_id=118829551] collision_layer = 0 collision_mask = 4 [node name="CollisionShape2D" type="CollisionShape2D" parent="InteractionArea" unique_id=118829552] shape = SubResource("CircleShape2D_interact")