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.
- [pygame] Shooting an object yanom @linuxmail.org
- Re: [pygame] Shooting an object Ian Mallett
- Re: [pygame] Shooting an object yanom @linuxmail.org
- Re: [pygame] Shooting an object Ian Mallett
- Re: [pygame] Shooting an object yanom @linuxmail.org
- Re: [pygame] Shooting an object Charlie Nolan
- Re: [pygame] Shooting an object Ian Mallett
- Re: [pygame] Shooting an object yanom @linuxmail.org
