I am making an Asteroid/Malström clone. And here is my problem - when i shoot a bigger asteroid it should split into two smaller asteroids as usual. But sometimes the asteroid splits into four smaller asteroids.
I know what the problem is but i can't find a solution to the problem.
The tings is that i shoot with a double shot (as shown in the image) and both bullets has an unique UID. Sometimes they hit the asteroid at the same time and repeats the function two times, that results ine double op in asteroid spawning.
Any kind heart out there that could help me with my problem?