1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
[gd_scene load_steps=3 format=3 uid="uid://ccij302qcrvo1"]
[ext_resource type="Script" uid="uid://cxy2ovjxwgtco" path="res://Scripts/Mask/GrappleMask.gd" id="1_1ftcc"]
[ext_resource type="Texture2D" uid="uid://csuuxeq47s64g" path="res://Assets/Visuals/mask1.svg" id="2_1ftcc"]
[node name="GrappleMask" type="Node2D" node_paths=PackedStringArray("area", "area_detect", "line")]
script = ExtResource("1_1ftcc")
area = NodePath("Area2D")
area_detect = NodePath("DetectArea2D")
line = NodePath("Line2D")
grapple_speed = 700.0
[node name="Line2D" type="Line2D" parent="."]
points = PackedVector2Array(0, 0, 0, 0)
default_color = Color(0.5002, 0.82, 0.5535, 1)
[node name="Mask1" type="Sprite2D" parent="."]
scale = Vector2(0.0315916, 0.0315916)
texture = ExtResource("2_1ftcc")
[node name="Area2D" type="Area2D" parent="."]
collision_layer = 8
collision_mask = 8
monitoring = false
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Area2D"]
polygon = PackedVector2Array(0, 0, 600, -50, 600, 50)
[node name="DetectArea2D" type="Area2D" parent="."]
collision_layer = 8
collision_mask = 8
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="DetectArea2D"]
polygon = PackedVector2Array(0, 0, 600, -50, 600, 50)
[connection signal="body_entered" from="Area2D" to="." method="_on_area_2d_body_entered"]
[connection signal="body_entered" from="DetectArea2D" to="." method="_on_detect_area_2d_body_entered"]
[connection signal="body_exited" from="DetectArea2D" to="." method="_on_detect_area_2d_body_exited"]
|