Edit: Bullets are generated right now on a loop within a enemy class
void shoot(int which){
Bullet B1;
B1.setsprite();
currentangle+=(6.2832/bnum)+0.05;
B1.setvars(x,y,currentangle*which,1.f,2.f,0.01f);
Bulletlist.push_back(B1);
}
void update(){
movtimer+=0.01f;
//x += sin(movtimer);
//std::cout<<x;
//printf("\n");
sprite.setPosition(x,y);
if (timer>=10){
for (int i=0; i<bnum; ++i) {
shoot(1);
}
timer=0;
}else{
timer++;
}
window.draw(sprite);
for (std::vector<Bullet>::iterator it = Bulletlist.begin() ; it != Bulletlist.end(); ++it){
it->update();
}
```