Is there a way to, for example:

  • Give everything a group
  • Make the group as something such as: Block, Enemy, Player, Projectile
  • Check for the group when checking colisions on an area2d

Thanks

Any Node can be placed in one or more groups. That can be done using the Inspector Node pane, or using the method add_to_group().
https://docs.godotengine.org/en/latest/classes/class_node.html#class-node-method-add-to-group

When a collision is detected, you can check if the colliding area or body is in a group using the is_in_group() method.
https://docs.godotengine.org/en/latest/classes/class_node.html#class-node-method-is-in-group