Pong example
swiftskater1
Member Posts: 97
I need help creating an enemy paddle. to follow the ball up and down. thanks
Comments
In the ball constrain game.ball to self.position.X if you are holding it horizontal or self.position.Y if verticle.
In the enemy paddle constrain self.position.X (or y depending on orientation) to game.ball
I think this should theoretically make the enemy unbeatable. So you may need to try acclerate towards and use the game.ball or move to. Not sure