I am just developing a simple iPhone application where a paddle moves left and right automatically.
My logic:
// First to determine the CGPoint of paddle
CGPoint detectXY = CGPointMake(paddle.center.x ,paddle.center.y);
// Second to determine the velocity of paddle
CGPoint paddleVelocity = CGPointMake(1,1);
// Adding velocity with X,Y cordinate
paddle.center = CGPointMake(paddle.center.x + paddleVelocity.x,
paddle.center.y + paddleVelocity.y);
But the paddle is not moving...
Any ideas?