Got another problem with my Allegro scrolling shooter
I'm trying to get the background to scroll upwards in a smooth way. I was originally trying to get the picture to loop round on itself (once i've got that going, i want to make it so that it can string together different pictures in a sequence to make things more interesting, but thats later). Anyway, I can get it to move the picture forward, although getting the looping to look 'smooth' is proving to be a little harder.
My idea was to use allegros blit function to put the picture in a buffer, the picture was longer vertically than the screen, and so for the first part, it would just 'print' the bottom section, slowly moving up until the top of the screen got to the top of the picture and then it switchs over and a 2nd part that prints the bottom of the picture to the top portion of the screen and the top portion of the picture to the bottom portion of the screen. then, as one part increases, the other part decreases and at a critical point when whats on the screen becomes the bottom of the picture, it reverts back to the initial part. and so splitting it up into two parts. Thing is, there must be an easier way of doing it than that. its really complicated. lol. How would you guys do it?