From 6d389367e55365c0d993e23d93a3e60ade51c844 Mon Sep 17 00:00:00 2001 From: freddie-a <57713959+freddie-a@users.noreply.github.com> Date: Sat, 29 Oct 2022 23:16:03 +0100 Subject: Change bullet sprite and accelerate spawning --- KinematicBody2D.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'KinematicBody2D.gd') diff --git a/KinematicBody2D.gd b/KinematicBody2D.gd index 4f2949c..96484f3 100644 --- a/KinematicBody2D.gd +++ b/KinematicBody2D.gd @@ -34,5 +34,5 @@ func _physics_process(delta): get_owner().add_child(obj) var bodies = get_overlapping_bodies() for body in bodies: - if body.get_name() != "Bullet": + if not "Bullet" in body.get_name(): emit_signal("hit", delta) -- cgit v1.2.3-70-g09d2