Posted March 04, 2025 by VoronGO
The core mechanic of our game is cloning, and I can't afford to have any issues in the foundation of the game. However, I’ve encountered a significant problem due to my limited coding experience.
The issue lies in the dependency between the player scene and the bullet. When the player shoots a bullet, it loads the player’s (clone’s) scene and creates it at the bullet’s landing point. But here’s the catch: this clone then loads the bullet scene again, and so on, creating a never-ending cycle of loading bullets and players.
It’s like the game becomes stuck in an endless loop of loading bullets and clones. 😭
I’m unsure how to break this dependency so they don't keep loading each other endlessly. Any advice would be greatly appreciated!