Hello,
My name is Joshua and im new here :D
Nice to meet you all ^^
also can anyone give me the example using delay? thx :)
private int shotDelay;
public void shootProjectile()
{
if (shotDelay > 0 && --shotDelay != 0) return;
getWorld().addObject(new Projectile(), getX(), getY());
shotDelay = 30;
}