-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEnemy.tscn
35 lines (25 loc) · 1.19 KB
/
Enemy.tscn
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
[gd_scene load_steps=4 format=2]
[ext_resource path="res://Enemy.gd" type="Script" id=1]
[ext_resource path="res://assets/ufo.png" type="Texture" id=2]
[sub_resource type="CircleShape2D" id=1]
radius = 17.9762
[node name="Path2D" type="Path2D"]
curve = null
script = ExtResource( 1 )
[node name="PathFollow2D" type="PathFollow2D" parent="."]
rotation = 3.12266
loop = false
[node name="StaticBody2D" type="StaticBody2D" parent="PathFollow2D"]
rotation = -3.12266
collision_layer = 2
collision_mask = 0
[node name="CollisionShape2D" type="CollisionShape2D" parent="PathFollow2D/StaticBody2D"]
shape = SubResource( 1 )
[node name="Sprite" type="Sprite" parent="PathFollow2D"]
texture = ExtResource( 2 )
[node name="VisibilityNotifier2D" type="VisibilityNotifier2D" parent="PathFollow2D"]
[node name="ShootTimer" type="Timer" parent="."]
wait_time = 1.5
[connection signal="screen_entered" from="PathFollow2D/VisibilityNotifier2D" to="." method="_on_VisibilityNotifier2D_screen_entered"]
[connection signal="screen_exited" from="PathFollow2D/VisibilityNotifier2D" to="." method="_on_VisibilityNotifier2D_screen_exited"]
[connection signal="timeout" from="ShootTimer" to="." method="_on_ShootTimer_timeout"]