Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- func collison_check():
- if hurt_by_overlaps == false or ghosting == true:
- pass
- if hurt_by_overlaps == true and ghosting == false:
- for body in suffocation_area.get_overlapping_bodies():
- if body.has_collision == true:
- if body.get_tree().has_group("Wall"):
- if overlapping == false:
- if test_prints == true:
- print("Overlapping with " + body.Name)
- overlapping = true
- if body == null:
- if overlapping == true:
- if test_prints == true:
- print(Name + " is no longer Overlapping with " + body.Name)
- overlapping = false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement