tarek2 I thought about this system, but the game I'm creating is too big, and I would have to set a lot of settings for "team2"
In this picture, can I replace something from (for each) to something lighter? When there are more than 20 objects in the game using this configuration in the image below, the FPS drops a lot.
When I removed the "for each" for testing, even with 200 objects my game continued at 60 fps