Files
2D_Game_test/PickupableObjects/GluePatch/GluePatch.tscn

29 lines
1.1 KiB
Plaintext

[gd_scene load_steps=4 format=3 uid="uid://r0424mbc1jx8"]
[ext_resource type="Script" path="res://PickupableObjects/GluePatch/GluePatch.gd" id="1_j7usm"]
[ext_resource type="Texture2D" uid="uid://t7jsxx1bf6dl" path="res://PickupableObjects/GluePatch/glue_patch.png" id="2_aflxg"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_dpesl"]
size = Vector2(17, 25)
[node name="GluePatch" type="Node2D"]
script = ExtResource("1_j7usm")
item_name = "Glue Patch"
item_description = "Lay down to slow down enemies!"
item_type = 0
item_clip_size = 3
item_ammo = 3
item_texture = ExtResource("2_aflxg")
[node name="GluePatchPUArea" type="Area2D" parent="."]
[node name="GluePatchImage" type="Sprite2D" parent="GluePatchPUArea"]
texture = ExtResource("2_aflxg")
[node name="CollisionShape2D" type="CollisionShape2D" parent="GluePatchPUArea"]
position = Vector2(0.5, 3.5)
shape = SubResource("RectangleShape2D_dpesl")
[connection signal="body_entered" from="GluePatchPUArea" to="." method="_on_glue_patch_pu_area_body_entered"]
[connection signal="body_exited" from="GluePatchPUArea" to="." method="_on_glue_patch_pu_area_body_exited"]