Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var forgive_group
- func _ready():
- forgive_group = "forgive_" + str(get_instance_id())
- ForgiveArea.body_entered.connect(_earlyProcessItem)
- #...
- #...
- func _earlyProcessItem(body:Node2D):
- if not body.is_in_group(forgive_group):
- body.add_to_group(forgive_group)
- func _processItem(body:Node2D):
- var Item = body as ItemClass
- #Check how item compares to the mode the machine is on
- if self.ItemIsCorrectType(Item):
- #...
- elif body.is_in_group(forgive_group):
- pass #
- else:
- #...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement