Need Help Creating Pong AI (Variable Difficulties)
I've managed to create a rather simple pong game with a title screen along with a two player version, but have been unable to create a decent CPU opponent.
I have an always active condition where the Y position of the CPU Paddle is set to the Y position of the ball, which makes for an impossible AI. It doesn't follow the ball at the given Speed, and I have no idea how to possibly implement that.
I've also tried creating a detector, a small invisible active object to precisely mimic the ball's Y position, but have run into the same problem.
The gist of the problem is having the CPU paddle follow the ball or detector smoothly without getting its position set.
I have my MFA attached with comments explaining the problem more efficiently and with more detail.
Pong