mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-17 15:33:47 +00:00
Camera sprite sweep
This commit is contained in:
parent
290acba7be
commit
88fd702cea
5 changed files with 59 additions and 7 deletions
|
|
@ -22,8 +22,6 @@ _playerDetection = NodePath("PlayerDetection")
|
|||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||
sprite_frames = ExtResource("2_omkb8")
|
||||
animation = &"full_scan"
|
||||
frame_progress = 0.779565
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("CircleShape2D_nkpag")
|
||||
|
|
@ -34,6 +32,7 @@ collision_mask = 2
|
|||
script = ExtResource("3_ax0x5")
|
||||
SweepSpeed = 10.0
|
||||
Debug = true
|
||||
SpritePath = NodePath("../AnimatedSprite2D")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="PlayerDetection"]
|
||||
shape = SubResource("CircleShape2D_gs7jc")
|
||||
|
|
|
|||
|
|
@ -122,6 +122,9 @@ Target = NodePath("../HorizontalDoor")
|
|||
[node name="Camera" parent="Factory Tilemaps" instance=ExtResource("16_clqjt")]
|
||||
position = Vector2(-649, -168)
|
||||
|
||||
[node name="PlayerDetection" parent="Factory Tilemaps/Camera" index="2"]
|
||||
SweepAngle = 40.0
|
||||
|
||||
[node name="AlarmBox" parent="Factory Tilemaps" instance=ExtResource("17_dppcs")]
|
||||
position = Vector2(-713, -153)
|
||||
|
||||
|
|
@ -184,3 +187,5 @@ script = ExtResource("25_rpwvt")
|
|||
|
||||
[node name="Camera" parent="." instance=ExtResource("16_clqjt")]
|
||||
position = Vector2(-1096, -23)
|
||||
|
||||
[editable path="Factory Tilemaps/Camera"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue