Can someone help me with points of a sprite? I am trying to make a sprite move when it intersects another's bounding box, but my code should be pretty much self explanitory on what im trying to do. I want the sprite to 'glide' or move smoothly in steps of 50 or less. How would I get the "not equal" bit right?
if (ball.getGlobalBounds().intersects(paddle1.getGlobalBounds()))
{
while (ball.getGlobalBounds != (400, -260)){
ball.move(20, 0);
}