mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-15 23:13:59 +00:00
Camera Player Detection sweep
This commit is contained in:
parent
059d076295
commit
da1fde4062
3 changed files with 139 additions and 6 deletions
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
[ext_resource type="Script" path="res://Scripts/Actors/Camera.cs" id="1_2qb38"]
|
||||
[ext_resource type="SpriteFrames" uid="uid://yfxog8pww6ih" path="res://Resources/Sprites/Camera.tres" id="2_omkb8"]
|
||||
[ext_resource type="Script" path="res://Scripts/Components/ProximityPlayerDetection.cs" id="3_1qxk5"]
|
||||
[ext_resource type="Script" path="res://Scripts/Components/CameraPlayerDetection.cs" id="3_ax0x5"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_nkpag"]
|
||||
|
||||
|
|
@ -14,7 +14,7 @@ size = Vector2(8, 12)
|
|||
|
||||
[node name="Camera" type="CharacterBody2D" node_paths=PackedStringArray("_playerDetection")]
|
||||
collision_layer = 16
|
||||
collision_mask = 73
|
||||
collision_mask = 75
|
||||
script = ExtResource("1_2qb38")
|
||||
Health = 1.0
|
||||
WalkSpeed = 0.0
|
||||
|
|
@ -29,12 +29,13 @@ frame_progress = 0.779565
|
|||
shape = SubResource("CircleShape2D_nkpag")
|
||||
|
||||
[node name="PlayerDetection" type="Area2D" parent="."]
|
||||
visible = false
|
||||
collision_layer = 16
|
||||
collision_mask = 2
|
||||
script = ExtResource("3_1qxk5")
|
||||
script = ExtResource("3_ax0x5")
|
||||
SweepSpeed = 10.0
|
||||
Debug = true
|
||||
|
||||
[node name="PlayerDetectionArea" type="CollisionShape2D" parent="PlayerDetection"]
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="PlayerDetection"]
|
||||
shape = SubResource("CircleShape2D_gs7jc")
|
||||
|
||||
[node name="DamageHitbox" type="Area2D" parent="."]
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue