feat: enemy death and damage effects
This commit is contained in:
parent
2134fcae92
commit
1a8c64806d
13 changed files with 96 additions and 7 deletions
56
project/objects/effects/blood_effect.tscn
Normal file
56
project/objects/effects/blood_effect.tscn
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
[gd_scene load_steps=7 format=3 uid="uid://clbq43giddldc"]
|
||||
|
||||
[sub_resource type="GDScript" id="GDScript_abt0s"]
|
||||
script/source = "extends Node3D
|
||||
|
||||
func _init():
|
||||
set_disable_scale(true)
|
||||
|
||||
func _ready():
|
||||
$GPUParticles3D.emitting = true
|
||||
"
|
||||
|
||||
[sub_resource type="Curve" id="Curve_abt0s"]
|
||||
_data = [Vector2(0.55064934, 1), 0.0, 0.0, 0, 0, Vector2(1, 0), -3.5361242, 0.0, 0, 0]
|
||||
point_count = 2
|
||||
|
||||
[sub_resource type="CurveTexture" id="CurveTexture_rtbd5"]
|
||||
curve = SubResource("Curve_abt0s")
|
||||
|
||||
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_abt0s"]
|
||||
direction = Vector3(0, 0, -1)
|
||||
spread = 5.0
|
||||
initial_velocity_min = 1.0
|
||||
initial_velocity_max = 3.0
|
||||
scale_curve = SubResource("CurveTexture_rtbd5")
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_rtbd5"]
|
||||
shading_mode = 2
|
||||
diffuse_mode = 1
|
||||
specular_mode = 2
|
||||
albedo_color = Color(0.7921569, 0.09803922, 0.09019608, 1)
|
||||
|
||||
[sub_resource type="QuadMesh" id="QuadMesh_qrff5"]
|
||||
material = SubResource("StandardMaterial3D_rtbd5")
|
||||
size = Vector2(0.3, 0.3)
|
||||
|
||||
[node name="BloodEffect" type="Node3D"]
|
||||
script = SubResource("GDScript_abt0s")
|
||||
|
||||
[node name="Timer" type="Timer" parent="."]
|
||||
wait_time = 0.2
|
||||
one_shot = true
|
||||
autostart = true
|
||||
|
||||
[node name="GPUParticles3D" type="GPUParticles3D" parent="."]
|
||||
emitting = false
|
||||
amount = 10
|
||||
lifetime = 0.2
|
||||
one_shot = true
|
||||
explosiveness = 0.6
|
||||
fixed_fps = 10
|
||||
transform_align = 3
|
||||
process_material = SubResource("ParticleProcessMaterial_abt0s")
|
||||
draw_pass_1 = SubResource("QuadMesh_qrff5")
|
||||
|
||||
[connection signal="timeout" from="Timer" to="." method="queue_free"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue