diff --git a/components/Effects/ShootBlood.tscn b/components/Effects/ShootBlood.tscn index f20a363..4e9624f 100644 --- a/components/Effects/ShootBlood.tscn +++ b/components/Effects/ShootBlood.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=10 format=3 uid="uid://mtenc2b01vau"] +[gd_scene format=3 uid="uid://mtenc2b01vau"] [ext_resource type="PackedScene" uid="uid://bcvuuy2m0pke0" path="res://components/Abstracts/EffectBase.tscn" id="1_yjqwo"] [ext_resource type="AudioStream" uid="uid://23ttwefh4ej2" path="res://resources/sounds/effect/arrowshot.mp3" id="2_joko4"] @@ -36,7 +36,7 @@ color = Color(1, 0, 0, 1) color_initial_ramp = SubResource("GradientTexture1D_joko4") alpha_curve = SubResource("CurveTexture_joko4") -[node name="ShootBlood" instance=ExtResource("1_yjqwo")] +[node name="ShootBlood" unique_id=1999496041 instance=ExtResource("1_yjqwo")] spawnSound = "spawn" [node name="spawn" parent="sounds" index="0"] diff --git a/scripts/Contents/Bullets/InfinitySword.gd b/scripts/Contents/Bullets/InfinitySword.gd index 7b0cde0..3f87338 100644 --- a/scripts/Contents/Bullets/InfinitySword.gd +++ b/scripts/Contents/Bullets/InfinitySword.gd @@ -10,3 +10,6 @@ func succeedToHit(_dmg: float, entity: EntityBase): else: implused.append(entity) entity.impluse(Vector2.from_angle(rotation) * 1500) + var eff = EffectController.create(ComponentManager.getEffect("ShootBlood"), entity.position) + eff.particles.hide() + eff.shot()