Jul-31-2018, 05:52 AM
I'm enhancing the Alien Invasion sample program from the Python Crash Course book. One feature I'd like to add is to randomly have a single alien to fly down the screen towards my ship. I've already created the code to do this. My problem is that it gets called in the game loop so my aliens constantly fly down the screen and the game is over in seconds. I thought about puttign this call into a timer where an alien will only be called to attack at a certain time. I'm just wondering if there is a better way t do this. Any thoughts?