I’m trying to make a Space Shooter game, in which you have to shoot meteors.
However, I want these asteroids to have random scale and a random starting angle (so the asteroids rotate in a non-similar way)
This is my code:
However, what happens is:
Every 1.2 seconds a new meteor is created, and ALL meteors in the scene are aplied a different size and angle EVERY 1.2 seconds.
But that is exactly what it does. It creates an asteroid at a random Y value, then it gives it a random starting angle and a random scale and they keep these values until they disappear…