I kind of understand. I think your explanation is fine, it's just my knowledge is not quit up to par yet. I do think I understand what your getting at. I thought may be I could give you a little more info on what I am doing. Here is how my input from keyboard is done:
Code:
if(d=='f')
{
reseta=a;
resetb=b;
PutSprite(a,b,sprite);
for(;;)
{
colour=Peek(a+10,b-1);
if(colour==4)
{
gotoxy(1,1);
score=score+1;
printf("%i!",score);
break;
}
if(colour==0)
{
SetPixel(a+10,b-1,5);
WaitForVerticalRetrace();
SetPixel(a+10,b-1,0);
b=b-1;
if(b==0)
{
break;
}
}
}
a=reseta;
b=resetb;
}
The above code is used in a loop with the direction keys inputed in the same way (I didn't want to include it all). My main game loop is outside of this loop, and that is where all of my alien enemy ships are located. The problem is when the "F" key is pressed it sarts in this loop and stops all other motion. Could I put this loop some how in the main game loop and have it run through the program at the same time my alien ships are being drawn? I hope this showed a little insight on how I am going about this. There is probably another way, but I don't know. Thanks lots for your time to read this, and for the help.
Code tags added by Hammer