aboutsummaryrefslogtreecommitdiffstats
path: root/KinematicBody2D.gd
diff options
context:
space:
mode:
authorfreddie-a <57713959+freddie-a@users.noreply.github.com>2022-10-29 23:16:03 +0100
committerfreddie-a <57713959+freddie-a@users.noreply.github.com>2022-10-29 23:16:03 +0100
commit6d389367e55365c0d993e23d93a3e60ade51c844 (patch)
tree2bbea616bae1bbb1982617a16a2fcf8fde4fd1d0 /KinematicBody2D.gd
parent50b7eb11fe309582002d2fb70742d1c1e6d03d92 (diff)
Change bullet sprite and accelerate spawning
Diffstat (limited to 'KinematicBody2D.gd')
-rw-r--r--KinematicBody2D.gd2
1 files changed, 1 insertions, 1 deletions
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)