Hello Im new with c++ but I'am trying to make a space invaders game....
This is a loop that is shooting...

if(skott1aktiv) { 
masked_blit(skott, screen, 0,0,skott1x,skott1y, 32,32); 
skott1x+=skott1dx;
uppdatera= true;
if(skott1x>639 || skott1x<0) skott1aktiv=false;
                                       
 }         
rest(10);
 }

Does anyone know how to make the shoot go up instead of going right??
thanks..

post all your code

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.