diff options
| author | freddie-a <57713959+freddie-a@users.noreply.github.com> | 2022-10-30 01:52:31 +0100 |
|---|---|---|
| committer | freddie-a <57713959+freddie-a@users.noreply.github.com> | 2022-10-30 01:52:31 +0100 |
| commit | 05911efcab3d011164e617915872c15fda45a53b (patch) | |
| tree | f580308f4d24bef35259b7af82fe433757d0e82a /Bullet.gd | |
| parent | f146c1ade2831cf3de6de9828e1340eadc0af4fe (diff) | |
Set background for health bar
Diffstat (limited to 'Bullet.gd')
| -rw-r--r-- | Bullet.gd | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -17,7 +17,7 @@ func _physics_process(delta): velocity = move_and_slide(velocity) for i in get_slide_count(): var collision = get_slide_collision(i) - if collision.collider: + if collision.collider and "Enemy" in collision.collider.get_name(): collision.collider.free() if velocity == Vector2(0.0, 0.0): queue_free() |
