[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] Shooting an object
Each enemy should be a class instance, so you can have many of them. Each class should have a variable--a counter. Each frame, as the enemy is updated, its timer ticks by one. It it reaches x frames, then it is reset to zero and the enemy fires.