I already have tried the way you mentioned where the computer paddle goes exactly where the ball is and it slows the ball down and makes the computer unbeatble obviously, so I'll maybe try guessing...
Type: Posts; User: program man
I already have tried the way you mentioned where the computer paddle goes exactly where the ball is and it slows the ball down and makes the computer unbeatble obviously, so I'll maybe try guessing...
I've already taken care of the angle the ball bounces off at. While I'm sure your method works great, my way was much easier:
totalx=20;
totaly=200;
ballx=.16;
bally=.07;
//first paddle...
I know that, but if someone held a button down it would ignore the other player. How do I do it?
How do I make the computer accept input from 2 users at the same time to move corresponding paddles? Please, if someone could just help me with this I could finish the game.
I know that, but how do you make it move at that set speed, hitting the ball sometimes but missing it other times? How, do I make the bal stop fashing so much? It's really annoying. And how do I...
How can I make the computer paddle move so that the computer is beatable? If I just set the y-variables of the paddle (top and bottom) equal to the where the ball is then the computer is unbeatable,...
OK, I got the ball moving and bouncing, but how do I make the paddle move when arrow keys are pressed? Do you use GetKeyPress? Would this work:
ypaddle=250;
testWindow.GetKeyPress(ckey);
if...
that didn't even make the ball move, and secondly I'm a beginner so I don't know what "ballx++" and "bally++" means. I tried that and the ball didn't move. I'm only familiar with something like...
I'm sorry, I don't know which one, my teacher just gave us all the disk to put the software onto our regular C++ program. I can tell you I have to include <graphics.h> and using namespace std, but...
As my first C++ game I'm making PONG. I have a good understanding of loops, ifs, functions, and graphics and am willing to learn other things to make this work. I need to make the ball move and...