There appears to be a bug. When terrainNum1 = -2 and terrainNum2 = 0 (do this by making P1 follow P2, both going left), P2 disappears on P1's screen and vice versa. Does anyone know how to fix this glitch? Also, if you make P2 follow P1, then the same glitch happens when terrainNum1 = 0 and terrainNum2 = -2. Based on Archmage's efficient scrolling project, I made two player scrolling. I'll make this into a game. Controls for p1: left and right to move, p2: a and d. Now you can see p2 passing you in p1's screen and vice versa. Also you go back to start if you pass 3, and go to 3 if you go backwards from 1.