how can I shoot a bullet every 15 iterations if the space bar is held down continuously ???
// instance field
private int shotTimer;
// in act or method called by act
if (shotTimer > 0) shotTimer--;
if (shotTimer == 0 && Greenfoot.isKeyDown("space"))
{
shoot();
shotTimer = 15;
}