-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathenemy.tscn
64 lines (54 loc) · 1.7 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
[gd_scene load_steps=6 format=2]
[ext_resource path="res://assets/character_robot_sheetHD.png" type="Texture" id=1]
[ext_resource path="res://enemy.gd" type="Script" id=2]
[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 23.5091, 28.469 )
[sub_resource type="Animation" id=3]
resource_name = "Ladder"
length = 0.6
tracks/0/type = "value"
tracks/0/path = NodePath("Sprite:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 0.1, 0.2, 0.3, 0.4, 0.5 ),
"transitions": PoolRealArray( 1, 1, 1, 1, 1, 1 ),
"update": 1,
"values": [ 5, 6, 5, 6, 5, 6 ]
}
[sub_resource type="Animation" id=2]
resource_name = "LeftDirection"
length = 0.6
tracks/0/type = "value"
tracks/0/path = NodePath("Sprite:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 0.1, 0.2, 0.3, 0.4, 0.5 ),
"transitions": PoolRealArray( 1, 1, 1, 1, 1, 1 ),
"update": 1,
"values": [ 36, 37, 38, 39, 40, 41 ]
}
[node name="Enemy" type="KinematicBody2D"]
collision_layer = 2
script = ExtResource( 2 )
[node name="Sprite" type="Sprite" parent="."]
position = Vector2( 0, 3.5 )
texture = ExtResource( 1 )
offset = Vector2( 0, -4 )
hframes = 9
vframes = 5
frame = 41
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2( -1.9469, 1.34128 )
shape = SubResource( 1 )
[node name="Timer" type="Timer" parent="."]
autostart = true
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
anims/Ladder = SubResource( 3 )
anims/LeftDirection = SubResource( 2 )
[connection signal="timeout" from="Timer" to="." method="_on_Timer_timeout"]