first of all, I wanna say hi to u all as I'm new to daniweb. I'm a freshman in a college so I don't know much of c yet. So please be understanding in case that I will ask some n00b question later on :)
So this is my problem...first one
I was using this code to get input from player to move the pad right and left
while(i<10)
{i++;
clrscr();
mov='s'; //supposed to be null, need more knowledge about \0
y=10;
gotoxy(x,y);puts(pad);/*supposed to remove the cursor if it's possible. Ended up using puts to make the cursor less noticeable*/
mov==getch();
if(mov='d')//supposed to be right arrow, don't know how to
{x=x+1;
clrscr();
gotoxy(x,y);puts(pad);
}
else if(mov='a')//supposed to be left arrow
{x=x-1;
clrscr();
gotoxy(x,y);puts(pad);
but I ended up getting right movement with anykey pressed
also another problem is getting the ball move as the time passed (I have no idea how to)