diff options
| author | Logan B <113468801+LoganLDB@users.noreply.github.com> | 2022-10-29 22:07:02 +0100 |
|---|---|---|
| committer | Logan B <113468801+LoganLDB@users.noreply.github.com> | 2022-10-29 22:07:02 +0100 |
| commit | b40da120e30d4521736c99392c08e97de2da34ae (patch) | |
| tree | 1e6d367d9c6cbe5dfb36791dcf4eb89905f22ca5 /KinematicBody2D.gd | |
| parent | 136c6918c7d9f3ebe12c4535c438a2c67f01c110 (diff) | |
adjusting sprites
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 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) |
