-
Notifications
You must be signed in to change notification settings - Fork 0
/
HitEffect.tscn
31 lines (24 loc) · 874 Bytes
/
HitEffect.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=7 format=2]
[ext_resource path="res://Art/Effects/hit_effect_anim_spritesheet.png" type="Texture" id=1]
[ext_resource path="res://Effect.gd" type="Script" id=2]
[sub_resource type="AtlasTexture" id=1]
atlas = ExtResource( 1 )
region = Rect2( 0, 0, 8, 8 )
[sub_resource type="AtlasTexture" id=2]
atlas = ExtResource( 1 )
region = Rect2( 8, 0, 8, 8 )
[sub_resource type="AtlasTexture" id=3]
atlas = ExtResource( 1 )
region = Rect2( 16, 0, 8, 8 )
[sub_resource type="SpriteFrames" id=4]
animations = [ {
"frames": [ SubResource( 1 ), SubResource( 2 ), SubResource( 3 ) ],
"loop": true,
"name": "default",
"speed": 10.0
} ]
[node name="AnimatedSprite" type="AnimatedSprite"]
frames = SubResource( 4 )
script = ExtResource( 2 )
playinpause = true
[connection signal="animation_finished" from="." to="." method="_on_AnimatedSprite_animation_finished"]