[gd_scene load_steps=8 format=2] [ext_resource path="res://assets/Traps/arrow.png" type="Texture" id=1] [ext_resource path="res://src/Hazards/Arrow.gd" type="Script" id=2] [ext_resource path="res://assets/Items/torch_ligt_texture.png" type="Texture" id=3] [sub_resource type="RectangleShape2D" id=1] extents = Vector2( 2.5, 2.5 ) [sub_resource type="RectangleShape2D" id=2] extents = Vector2( 1.5, 1.5 ) [sub_resource type="Animation" id=3] resource_name = "fade_out" length = 0.2 tracks/0/type = "value" tracks/0/path = NodePath("Sprite:self_modulate") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/imported = false tracks/0/enabled = true tracks/0/keys = { "times": PoolRealArray( 0, 0.2 ), "transitions": PoolRealArray( 1, 1 ), "update": 0, "values": [ Color( 1, 1, 1, 1 ), Color( 1, 1, 1, 0 ) ] } tracks/1/type = "method" tracks/1/path = NodePath(".") 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( 1 ), "values": [ { "args": [ ], "method": "queue_free" } ] } tracks/2/type = "value" tracks/2/path = NodePath("Light2D:energy") tracks/2/interp = 1 tracks/2/loop_wrap = true tracks/2/imported = false tracks/2/enabled = true tracks/2/keys = { "times": PoolRealArray( 0, 0.1 ), "transitions": PoolRealArray( 1, 1 ), "update": 0, "values": [ 1.44, 0.0 ] } [sub_resource type="Animation" id=4] resource_name = "idle" length = 0.1 tracks/0/type = "value" tracks/0/path = NodePath("Sprite:self_modulate") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/imported = false tracks/0/enabled = true tracks/0/keys = { "times": PoolRealArray( 0 ), "transitions": PoolRealArray( 1 ), "update": 0, "values": [ Color( 1, 1, 1, 1 ) ] } [node name="Arrow" type="Node2D"] script = ExtResource( 2 ) [node name="Sprite" type="Sprite" parent="."] position = Vector2( -7, -1 ) texture = ExtResource( 1 ) [node name="HitZone" type="Area2D" parent="."] collision_layer = 0 collision_mask = 3 [node name="CollisionShape2D" type="CollisionShape2D" parent="HitZone"] position = Vector2( -2.5, -0.5 ) shape = SubResource( 1 ) [node name="PinZone" type="Area2D" parent="."] collision_layer = 0 collision_mask = 8 [node name="CollisionShape2D" type="CollisionShape2D" parent="PinZone"] position = Vector2( -6, -0.5 ) shape = SubResource( 2 ) [node name="AnimationPlayer" type="AnimationPlayer" parent="."] autoplay = "idle" anims/fade_out = SubResource( 3 ) anims/idle = SubResource( 4 ) [node name="Light2D" type="Light2D" parent="."] position = Vector2( -7, -0.5 ) scale = Vector2( 1.84, 0.28 ) texture = ExtResource( 3 ) color = Color( 0.976471, 0.282353, 0.282353, 1 ) energy = 1.44 range_item_cull_mask = 31871 shadow_enabled = true [connection signal="body_entered" from="HitZone" to="." method="_on_HitZone_body_entered"] [connection signal="body_entered" from="PinZone" to="." method="_on_PinZone_body_entered"]