Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | OreganoDev |
Hey, I am developing a 2D city builder style game inside Godot. Currently, I have Over 40 area2Ds every game, due to people being able to spawn in a building with four of them each. However, the Buildings are constantly checking for other buildings they are colliding with. I am afraid that this will cause large lag problems in the future. Is there any way I can check for area2D collision from a function call instead of every frame?
For example, can I use a function that checks for a collision once? Instead of Area2D checking every frame.
Currently, I am using the Area2D_entered(area): function
Thanks for the help