I have a runner game that runs from left to right. I also have an object (car) which is supposed to spawn from the right side of the screen and continues to the left with a linear velocity of -5. Sometimes, the car will randomly spawn on the screen, when the user is playing, rather than spawning from off screen. When i give the car a velocity of 0, i dont have a problem, but when i change it from 0 to anything, it gives me this problem. Please help.
i found a solution. DELETE THE SPAWNER COMPONENT AND JUST COPY AND PASTE THE CARS, BUT KEEP THE "Y" VALUE THE SAME AND CHANGE THE X VALUES TO KEEP IT RANDOM