[gd_scene load_steps=10 format=3 uid="uid://cwcgq1vk643ha"] [ext_resource type="Script" uid="uid://dqvdgdobuo2rf" path="res://Game/Bullets/bullet.gd" id="1_yml18"] [ext_resource type="Texture2D" uid="uid://t8y1d33eiffp" path="res://Assets/Bullets/mortarbullet (1).png" id="2_yml18"] [ext_resource type="Texture2D" uid="uid://cinql8footbvf" path="res://Assets/Bullets/mortarbullet (2).png" id="3_tjven"] [ext_resource type="Texture2D" uid="uid://xm4gs3h00bk1" path="res://Assets/Bullets/mortarbullet (3).png" id="4_av0br"] [ext_resource type="Texture2D" uid="uid://crf32to6tlkux" path="res://Assets/Bullets/mortarbullet (4).png" id="5_c612l"] [ext_resource type="Texture2D" uid="uid://bbu8u4h7vpqwa" path="res://Assets/Bullets/mortarbullet (5).png" id="6_m5188"] [ext_resource type="Texture2D" uid="uid://uc2ib201l7kd" path="res://Assets/Bullets/mortarbullet (6).png" id="7_lr72h"] [sub_resource type="RectangleShape2D" id="RectangleShape2D_yml18"] size = Vector2(18, 16) [sub_resource type="SpriteFrames" id="SpriteFrames_yml18"] animations = [{ "frames": [{ "duration": 1.0, "texture": ExtResource("2_yml18") }], "loop": true, "name": &"default", "speed": 2.0 }, { "frames": [{ "duration": 1.0, "texture": ExtResource("3_tjven") }, { "duration": 1.0, "texture": ExtResource("4_av0br") }, { "duration": 1.0, "texture": ExtResource("5_c612l") }, { "duration": 1.0, "texture": ExtResource("6_m5188") }, { "duration": 1.0, "texture": ExtResource("7_lr72h") }], "loop": false, "name": &"hit", "speed": 8.0 }] [node name="Rock" type="Node2D"] script = ExtResource("1_yml18") [node name="CharacterBody2D" type="CharacterBody2D" parent="."] collision_mask = 2 [node name="CollisionShape2D" type="CollisionShape2D" parent="CharacterBody2D"] shape = SubResource("RectangleShape2D_yml18") [node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="CharacterBody2D"] scale = Vector2(0.4, 0.4) sprite_frames = SubResource("SpriteFrames_yml18") autoplay = "default" [connection signal="animation_finished" from="CharacterBody2D/AnimatedSprite2D" to="." method="_on_animated_sprite_2d_animation_finished"]