-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathFireKnife.tscn
38 lines (30 loc) · 1.27 KB
/
FireKnife.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
[gd_scene load_steps=7 format=2]
[ext_resource path="res://FireKnife.gd" type="Script" id=1]
[ext_resource path="res://sprites/flameknife1.png" type="Texture" id=2]
[ext_resource path="res://sprites/flameknife2.png" type="Texture" id=3]
[ext_resource path="res://sprites/flameknife23.png" type="Texture" id=4]
[sub_resource type="SpriteFrames" id=1]
animations = [ {
"frames": [ ExtResource( 2 ), ExtResource( 4 ), ExtResource( 3 ) ],
"loop": true,
"name": "shoot",
"speed": 12.0
} ]
[sub_resource type="RectangleShape2D" id=2]
extents = Vector2( 6.59975, 2.80897 )
[node name="FireKnife" type="Area2D"]
script = ExtResource( 1 )
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
position = Vector2( 2.34, 0.258 )
scale = Vector2( 0.369, 0.355 )
frames = SubResource( 1 )
animation = "shoot"
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2( 2.00301, 0 )
shape = SubResource( 2 )
[node name="VisibilityNotifier2D" type="VisibilityNotifier2D" parent="."]
visible = false
position = Vector2( -1.593, 0 )
scale = Vector2( 0.794, 0.162 )
[connection signal="body_entered" from="." to="." method="_on_FireKnife_body_entered"]
[connection signal="screen_exited" from="VisibilityNotifier2D" to="." method="_on_VisibilityNotifier2D_screen_exited"]