Grapple effects & particles & stuff :)
This commit is contained in:
parent
c290b1ce72
commit
421220e763
13 changed files with 203 additions and 61 deletions
41
Particles/Grapple/GrappleParti.tscn
Normal file
41
Particles/Grapple/GrappleParti.tscn
Normal file
|
@ -0,0 +1,41 @@
|
|||
[gd_scene load_steps=7 format=3 uid="uid://c7ee2fxogdnlx"]
|
||||
|
||||
[ext_resource type="Script" path="res://Particles/Scripts/OneshotParticles.gd" id="1_8sxdw"]
|
||||
|
||||
[sub_resource type="Curve" id="Curve_ij5tg"]
|
||||
_data = [Vector2(0, 1), 0.0, 0.0, 0, 0, Vector2(0.721154, 0), -1.52381, 0.0, 0, 0]
|
||||
point_count = 2
|
||||
|
||||
[sub_resource type="CurveTexture" id="CurveTexture_lhu0n"]
|
||||
curve = SubResource("Curve_ij5tg")
|
||||
|
||||
[sub_resource type="Curve" id="Curve_a1gx6"]
|
||||
max_value = 3.0
|
||||
_data = [Vector2(0, 3), 0.0, 0.0, 0, 0, Vector2(1, 1), 0.0, 0.0, 0, 0]
|
||||
point_count = 2
|
||||
|
||||
[sub_resource type="CurveTexture" id="CurveTexture_210cn"]
|
||||
curve = SubResource("Curve_a1gx6")
|
||||
|
||||
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_75uqe"]
|
||||
particle_flag_align_y = true
|
||||
particle_flag_disable_z = true
|
||||
inherit_velocity_ratio = 0.5
|
||||
initial_velocity_min = 250.0
|
||||
initial_velocity_max = 250.0
|
||||
gravity = Vector3(0, 0, 0)
|
||||
damping_min = 50.0
|
||||
damping_max = 50.0
|
||||
scale_min = 0.5
|
||||
scale_curve = SubResource("CurveTexture_lhu0n")
|
||||
scale_over_velocity_max = 1000.0
|
||||
scale_over_velocity_curve = SubResource("CurveTexture_210cn")
|
||||
|
||||
[node name="FireParticles" type="GPUParticles2D"]
|
||||
top_level = true
|
||||
process_material = SubResource("ParticleProcessMaterial_75uqe")
|
||||
lifetime = 0.75
|
||||
explosiveness = 1.0
|
||||
trail_enabled = true
|
||||
trail_lifetime = 0.1
|
||||
script = ExtResource("1_8sxdw")
|
13
Particles/Scripts/OneshotParticles.gd
Normal file
13
Particles/Scripts/OneshotParticles.gd
Normal file
|
@ -0,0 +1,13 @@
|
|||
extends GPUParticles2D
|
||||
|
||||
var following = false
|
||||
|
||||
func _ready():
|
||||
emitting = true
|
||||
one_shot = true
|
||||
|
||||
await get_tree().create_timer(lifetime * 2).timeout
|
||||
queue_free()
|
||||
|
||||
func _process(delta):
|
||||
global_position = get_parent().global_position
|
Loading…
Add table
Add a link
Reference in a new issue