From b40da120e30d4521736c99392c08e97de2da34ae Mon Sep 17 00:00:00 2001 From: Logan B <113468801+LoganLDB@users.noreply.github.com> Date: Sat, 29 Oct 2022 22:07:02 +0100 Subject: adjusting sprites --- KinematicBody2D.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'KinematicBody2D.gd') diff --git a/KinematicBody2D.gd b/KinematicBody2D.gd index 96484f3..4f2949c 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 not "Bullet" in body.get_name(): + if body.get_name() != "Bullet": emit_signal("hit", delta) -- cgit v1.2.3-70-g09d2