public void shoot(){
if(shootDelay > 0){
shootDelay--;
}
else{
if(Greenfoot.getMouseInfo() != null){
if(Greenfoot.getMouseInfo().getButton() != 0){
getWorld().addObject(new Bullet(),getX(),getY());
shootDelay = 30;
}
}
}
}
i got this code for shooting by clicking the mouse but uf my mouse stays in one possition and hold mouse button it addObject only once, how to change to addobject rapidly?
