Step 4: Fog Movement

Next, we are going to slowly move each Fog 1 object 1 pixel up and right and add to the counters. Moving the fog quicker horizontally that it does vertically will create a more realistic effect.
Now we must reposition the object back at it's original X position once it has moved 320 pixels right (it's own width) and back at it's original Y position once it has moved 180 pixels up (it's own height).
Test the application and you will see one layer of fog seemelessly scrolling into infinity.

8