Good day, how do i make an enemy shot at a delay of 100 counts with out controlling it?
private int shotDelay=100, shotTimer=shotDelay; //in act if (--shotTimer == 0) { shotTimer = shotDelay; Bullet b = new Bullet(); getWorld().addObject(b, getX(), getY()); b.setRotation(getRotation()); }