Step 5: Repeat for Fog layer 2

Now we must repeat the previous steps for the remaining fog objects. So hide layer 3 and show layer 4. Now repeat step 2 with the Fog 2 object. Only this time, position the objects like this:


The movement events for Fog 2 are identical as for Fog 1 only this time we are subtracting 1 from the X position as opposed to adding 1. If you copy and paste the events be careful to correctly replace each Fog 1 object with a Fog 2 object as the icons are very similar.
To reposition at the initial X and Y co-ordinates we are still testing if the counters equal positive 320 and positive 180 because we still added positive 1 to each counter.
Test the application and you will see two layers of fog seamlessly scrolling in opposite directions.

9