[gd_scene load_steps=8 format=3 uid="uid://b0au341yw6g52"] [ext_resource type="Texture2D" uid="uid://dtn6mbn4q0plm" path="res://scenes/coin/coin.png" id="1_4vkkb"] [ext_resource type="Script" path="res://scenes/coin/coin.gd" id="1_xp82m"] [sub_resource type="Animation" id="Animation_jfpvc"] length = 0.001 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath("Sprite:frame") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "times": PackedFloat32Array(0), "transitions": PackedFloat32Array(1), "update": 1, "values": [0] } tracks/1/type = "value" tracks/1/imported = false tracks/1/enabled = true tracks/1/path = NodePath("Sprite:modulate") tracks/1/interp = 1 tracks/1/loop_wrap = true tracks/1/keys = { "times": PackedFloat32Array(0), "transitions": PackedFloat32Array(1), "update": 0, "values": [Color(1, 1, 1, 1)] } [sub_resource type="Animation" id="Animation_64j7p"] resource_name = "rotate" loop_mode = 1 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath("Sprite:frame") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "times": PackedFloat32Array(0, 0.666667, 0.766667, 0.9), "transitions": PackedFloat32Array(1, 1, 1, 1), "update": 1, "values": [0, 1, 2, 1] } [sub_resource type="Animation" id="Animation_6xqsk"] resource_name = "explode" length = 0.1 step = 0.01 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath("Sprite:modulate") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "times": PackedFloat32Array(0, 0.09), "transitions": PackedFloat32Array(1, 1), "update": 0, "values": [Color(1, 1, 1, 1), Color(1, 1, 1, 0)] } [sub_resource type="AnimationLibrary" id="AnimationLibrary_om3ic"] _data = { "RESET": SubResource("Animation_jfpvc"), "explode": SubResource("Animation_6xqsk"), "rotate": SubResource("Animation_64j7p") } [sub_resource type="CircleShape2D" id="CircleShape2D_qamc5"] radius = 3.0 [node name="Coin" type="Area2D"] script = ExtResource("1_xp82m") [node name="Sprite" type="Sprite2D" parent="."] texture = ExtResource("1_4vkkb") hframes = 3 metadata/_edit_lock_ = true [node name="AnimationPlayer" type="AnimationPlayer" parent="."] libraries = { "": SubResource("AnimationLibrary_om3ic") } [node name="CollisionShape2D" type="CollisionShape2D" parent="."] visible = false shape = SubResource("CircleShape2D_qamc5") [connection signal="body_entered" from="." to="." method="_on_body_entered"]