well l able to get the computer controlled paddle in pong to move up the screen and stay there. I want it to move back down to the bottom of the screen and then back up again, basically I want the paddle to move up and down the screen on its own.
here is the code I am using.
if(computer_move >= screen_height)
{
computer_move-=0.1f;
}
else if(computer_move <= -screen_height)
{
computer_move+=0.1f;
}
computer_move+=0.1f;