After imagees
This commit is contained in:
parent
421220e763
commit
279b5e5599
8 changed files with 91 additions and 35 deletions
|
@ -21,7 +21,8 @@ func _physics_process(delta):
|
|||
|
||||
move_and_slide()
|
||||
|
||||
$"parti".emitting = (lastPos - position).length() > 0
|
||||
if find_child("parti"):
|
||||
$"parti".emitting = (lastPos - position).length() > 0
|
||||
|
||||
if detecting:
|
||||
if lifeTime <= 0:
|
||||
|
@ -40,4 +41,5 @@ func _physics_process(delta):
|
|||
detecting = false
|
||||
position = result.position
|
||||
objectHit(result.collider)
|
||||
|
||||
lastPos = position
|
||||
|
|
|
@ -8,21 +8,23 @@
|
|||
_data = [Vector2(0, 1), 0.0, 0.0, 0, 0, Vector2(1, 0), -2.51429, 0.0, 0, 0]
|
||||
point_count = 2
|
||||
|
||||
[sub_resource type="CurveTexture" id="CurveTexture_f4r8k"]
|
||||
[sub_resource type="CurveTexture" id="CurveTexture_h7vvv"]
|
||||
curve = SubResource("Curve_qnwwb")
|
||||
|
||||
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_tkwr2"]
|
||||
particle_flag_align_y = true
|
||||
particle_flag_disable_z = true
|
||||
inherit_velocity_ratio = 0.1
|
||||
inherit_velocity_ratio = -0.1
|
||||
direction = Vector3(0, 1, 0)
|
||||
spread = 180.0
|
||||
flatness = 1.0
|
||||
initial_velocity_min = 50.0
|
||||
initial_velocity_max = 50.0
|
||||
gravity = Vector3(0, 0, 0)
|
||||
damping_min = 50.0
|
||||
damping_max = 50.0
|
||||
scale_max = 2.0
|
||||
scale_curve = SubResource("CurveTexture_f4r8k")
|
||||
scale_curve = SubResource("CurveTexture_h7vvv")
|
||||
|
||||
[node name="GrappleHook" type="CharacterBody2D"]
|
||||
top_level = true
|
||||
|
@ -39,7 +41,7 @@ texture = ExtResource("2_sst4t")
|
|||
|
||||
[node name="GrappleLine" type="Line2D" parent="."]
|
||||
top_level = true
|
||||
z_index = 1
|
||||
z_index = 2
|
||||
texture_repeat = 2
|
||||
points = PackedVector2Array(0, 0, 33, 0)
|
||||
width = 4.0
|
||||
|
@ -53,6 +55,7 @@ round_precision = 4
|
|||
[node name="GrappleBord" type="Line2D" parent="."]
|
||||
modulate = Color(0, 0, 0, 1)
|
||||
top_level = true
|
||||
z_index = 1
|
||||
texture_repeat = 2
|
||||
points = PackedVector2Array(0, 0, 33, 0)
|
||||
width = 6.0
|
||||
|
@ -63,7 +66,7 @@ end_cap_mode = 2
|
|||
round_precision = 4
|
||||
|
||||
[node name="parti" type="GPUParticles2D" parent="."]
|
||||
amount = 100
|
||||
amount = 200
|
||||
process_material = SubResource("ParticleProcessMaterial_tkwr2")
|
||||
lifetime = 2.0
|
||||
fixed_fps = 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue