diff options
| author | freddie-a <57713959+freddie-a@users.noreply.github.com> | 2022-10-29 22:45:55 +0100 |
|---|---|---|
| committer | freddie-a <57713959+freddie-a@users.noreply.github.com> | 2022-10-29 22:45:55 +0100 |
| commit | 136c6918c7d9f3ebe12c4535c438a2c67f01c110 (patch) | |
| tree | 66360dea71d9c02b2d2f8d864e6ee0448c7b6e0a /KinematicBody2D.gd | |
| parent | a4ac6fe79a37824f3f720f4a3c468172461f70d7 (diff) | |
Add bullet collisions
Diffstat (limited to 'KinematicBody2D.gd')
| -rw-r--r-- | KinematicBody2D.gd | 2 |
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) |
