-
Notifications
You must be signed in to change notification settings - Fork 114
Open
Description
| if follow.unit_offset > 1: |
going through this code i faced with the issue that enemies were still shooting for ever even when they were off screen, this fixed the issue for me:
func _process(delta):
follow.offset += speed * delta
position = follow.global_position
if follow.unit_offset == 1: # changed follow.unit_offset > 1 to follow.unit_offset == 1
queue_free()
Metadata
Metadata
Assignees
Labels
No labels