+1 vote

I am currently developing a multiplayer game on godot 3.4. It is a space game where spaceships fight with each other on a static map. I allow only 6 players on a single Game. If more players join I create a new Game and so on. My node structure looks like this:

Root:
  Server:
    Game:
      Player1
      Player2
    Game:
      Player3
      Player4

So normally players under one Game node should not interact with other player in other Games. So no collisions or anything else. My Player nodes are KinematicBody2d. As a result as they have a common parent all players under different games all collide and interact with each other. As a solution I see creating dynamic collision layers for each created game and their children. But is there a better solution for this case?

Godot version 3.4
in Engine by (13 points)

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.