Hello again :)
I have another problem here, so here what i want:
- i want after the projectile hit the target , tower will stop shooting the projectile, but in my case, the tower keep shooting the projectile, but after that it dissapear since it dont have any target.
-so i try with while, but its say incompatible type .-.
thx before ^^
(Tower class)
public void shootProjectile()
{
int miniion = getWorld().getObjects(Minion1.class);
while(miniion > 0){
if (shotDelay > 0 && --shotDelay != 0) return;
getWorld().addObject(new Projectile1(), getX(), getY());
shotDelay = 100;
}
}