[gd_scene load_steps=10 format=2] [ext_resource path="res://Images and Anims/In Game/coin.png" type="Texture" id=1] [ext_resource path="res://Objects/Coin.gd" type="Script" id=2] [sub_resource type="CircleShape2D" id=1] radius = 22.2384 [sub_resource type="AtlasTexture" id=2] flags = 4 atlas = ExtResource( 1 ) region = Rect2( 0, 0, 16, 16 ) [sub_resource type="AtlasTexture" id=3] flags = 4 atlas = ExtResource( 1 ) region = Rect2( 16, 0, 16, 16 ) [sub_resource type="AtlasTexture" id=4] flags = 4 atlas = ExtResource( 1 ) region = Rect2( 32, 0, 16, 16 ) [sub_resource type="AtlasTexture" id=5] flags = 4 atlas = ExtResource( 1 ) region = Rect2( 48, 0, 16, 16 ) [sub_resource type="AtlasTexture" id=6] flags = 4 atlas = ExtResource( 1 ) region = Rect2( 64, 0, 16, 16 ) [sub_resource type="SpriteFrames" id=7] animations = [ { "frames": [ SubResource( 2 ), SubResource( 3 ), SubResource( 4 ), SubResource( 5 ), SubResource( 6 ) ], "loop": true, "name": "Spin", "speed": 10.0 } ] [node name="Coin" type="Area2D"] script = ExtResource( 2 ) [node name="CollisionShape2D" type="CollisionShape2D" parent="."] shape = SubResource( 1 ) [node name="AnimatedSprite" type="AnimatedSprite" parent="."] scale = Vector2( 2, 2 ) frames = SubResource( 7 ) animation = "Spin" frame = 2 playing = true [connection signal="body_entered" from="." to="." method="_on_Coin_body_entered"]