My problem is I have two images which i'll call 'image1' & 'image2'. I'm trying to get image1 to initally load on the screen and when the red button is pressed image2 to be in it's place. But using my code when you click the button it only flashes the image2 for a second and then goes back to image1. So I'm looking at trying to keep image2 on the screen once the button is pressed.
Basically trying to get the second rectangle to stop at the x coordinate 100 and the first to stop at the x cordinate 649. But they both stop moving once the the second rectangle reaches x 100. Any ideas.