-
Notifications
You must be signed in to change notification settings - Fork 1
/
Enemy.tscn
31 lines (24 loc) · 979 Bytes
/
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
[gd_scene load_steps=4 format=2]
[ext_resource path="res://Assets/Enemy.png" type="Texture" id=1]
[ext_resource path="res://Enemy.cs" type="Script" id=2]
[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 70.0061, 67.4013 )
[node name="Enemy" type="RigidBody2D"]
collision_mask = 0
gravity_scale = 0.0
script = ExtResource( 2 )
__meta__ = {
"_edit_group_": true
}
[node name="Sprite" type="Sprite" parent="."]
scale = Vector2( 0.411494, 0.411494 )
texture = ExtResource( 1 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
scale = Vector2( 0.389659, 0.389659 )
shape = SubResource( 1 )
[node name="VisibilityNotifier2D" type="VisibilityNotifier2D" parent="."]
[node name="Movement" type="Timer" parent="."]
wait_time = 2.0
autostart = true
[connection signal="screen_exited" from="VisibilityNotifier2D" to="." method="_on_VisibilityNotifier2D_screen_exited"]
[connection signal="timeout" from="Movement" to="." method="_on_Movement_timeout"]