Hey!
So my enemys can move and they can shoot. But they do it on the same time.
Do you know how I could do it that there is a small delay between them?
Here you can watch:
This is my method for the enemys to shoot:
// Time Interval
if(enemyCount>125)
{
for(int enemys = 0;enemys < enemyContainer.size(); enemys++) // Go throught all enemys
{
for(int bullets = 0;bullets < 5;bullets++) // Shoot 5 Bullets
{
projectile = new Projectile(enemyContainer.get(enemys).x - (bullets*30),enemyContainer.get(enemys).y + 13,sprites.projectile); // Create new Projectile
enemyBullets.add(projectile); // Add the bullet the Container
}
}
enemyCount=0;
}
else enemyCount++;