[gd_scene load_steps=7 format=2] [ext_resource path="res://objects/characters/monsters/02/assets/monster_02.svg" type="Texture" id=1] [ext_resource path="res://objects/characters/monsters/02/monster_02.gd" type="Script" id=2] [ext_resource path="res://objects/characters/monsters/02/assets/hole.svg" type="Texture" id=3] [sub_resource type="RectangleShape2D" id=1] extents = Vector2( 24, 73 ) [sub_resource type="Animation" id=3] resource_name = "die" length = 0.5 tracks/0/type = "value" tracks/0/path = NodePath("Sprite:position") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/imported = false tracks/0/enabled = true tracks/0/keys = { "times": PoolRealArray( 0, 0.5 ), "transitions": PoolRealArray( 0.5, 1 ), "update": 0, "values": [ Vector2( 0, 40 ), Vector2( 0, 57 ) ] } [sub_resource type="Animation" id=2] resource_name = "move" length = 2.0 tracks/0/type = "value" tracks/0/path = NodePath("Sprite:position") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/imported = false tracks/0/enabled = true tracks/0/keys = { "times": PoolRealArray( 0, 2 ), "transitions": PoolRealArray( -2, 1 ), "update": 0, "values": [ Vector2( 0, 40 ), Vector2( 0, -89 ) ] } tracks/1/type = "value" tracks/1/path = NodePath("Collision:position") tracks/1/interp = 1 tracks/1/loop_wrap = true tracks/1/imported = false tracks/1/enabled = true tracks/1/keys = { "times": PoolRealArray( 0, 2 ), "transitions": PoolRealArray( -2, 1 ), "update": 0, "values": [ Vector2( 0, 40 ), Vector2( 0, -89 ) ] } tracks/2/type = "value" tracks/2/path = NodePath("PlayerCollision:position") tracks/2/interp = 1 tracks/2/loop_wrap = true tracks/2/imported = false tracks/2/enabled = true tracks/2/keys = { "times": PoolRealArray( 0, 2 ), "transitions": PoolRealArray( -2, 1 ), "update": 0, "values": [ Vector2( 0, 40 ), Vector2( 0, -89 ) ] } [node name="monster_02" type="StaticBody2D"] collision_layer = 2 script = ExtResource( 2 ) damage = 15 [node name="Sprite" type="Sprite" parent="."] position = Vector2( 0, 56.32 ) texture = ExtResource( 1 ) [node name="Collision" type="CollisionShape2D" parent="."] position = Vector2( 0, 40 ) shape = SubResource( 1 ) [node name="Animation" type="AnimationPlayer" parent="."] playback_process_mode = 0 anims/die = SubResource( 3 ) anims/move = SubResource( 2 ) [node name="PlayerCollision" type="Area2D" parent="."] position = Vector2( 0, 40 ) collision_layer = 0 [node name="Collision" type="CollisionShape2D" parent="PlayerCollision"] scale = Vector2( 1.1, 1.1 ) shape = SubResource( 1 ) [node name="Hole" type="Sprite" parent="."] position = Vector2( 0, -8 ) texture = ExtResource( 3 ) [connection signal="animation_finished" from="Animation" to="." method="_on_Animation_finished"] [connection signal="body_entered" from="PlayerCollision" to="." method="_on_PlayerCollision"]