File size: 2,143 Bytes
8f07272
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
65
66
67
68
69
70
71
72
[gd_scene load_steps=9 format=3 uid="uid://pffttuwh55wu"]

[ext_resource type="Script" path="res://spells/spell_ball.gd" id="1_ecgmp"]
[ext_resource type="Shader" uid="uid://cwsommgd0jehq" path="res://spells/spell_ball.tres" id="2_cnunw"]

[sub_resource type="ShaderMaterial" id="ShaderMaterial_jfj5x"]
render_priority = 0
shader = ExtResource("2_cnunw")

[sub_resource type="SphereMesh" id="SphereMesh_4768q"]
material = SubResource("ShaderMaterial_jfj5x")

[sub_resource type="Animation" id="Animation_xchd1"]
length = 0.4
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("MeshInstance3d:scale")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.4),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Vector3(0.1, 0.1, 0.1), Vector3(1, 1, 1)]
}

[sub_resource type="Animation" id="Animation_5xrun"]
resource_name = "shoot"
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("MeshInstance3d:scale")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector3(0.1, 0.1, 0.1)]
}

[sub_resource type="AnimationLibrary" id="AnimationLibrary_2eut7"]
_data = {
"RESET": SubResource("Animation_xchd1"),
"shoot": SubResource("Animation_5xrun")
}

[sub_resource type="SphereShape3D" id="SphereShape3D_jmbr3"]

[node name="SpellBall" type="Node3D"]
script = ExtResource("1_ecgmp")

[node name="MeshInstance3d" type="MeshInstance3D" parent="."]
transform = Transform3D(0.1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, 0, 0, 0)
mesh = SubResource("SphereMesh_4768q")

[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
autoplay = "RESET"
libraries = {
"": SubResource("AnimationLibrary_2eut7")
}

[node name="hurtbox" type="Area3D" parent="."]
collision_layer = 8
collision_mask = 32

[node name="CollisionShape3d" type="CollisionShape3D" parent="hurtbox"]
shape = SubResource("SphereShape3D_jmbr3")

[connection signal="area_entered" from="hurtbox" to="." method="_on_hurtbox_area_entered"]