Scroll an image horizontally and seamlessly endless.

I am having some trouble figuring out how to get the two images from my main tab to "cycle" through or to horizontally scroll endlessly. I have researched many different examples and tutorials online but I still can not get to it work for me. Please if anyone can give me some advice or something it would be much appreciated. The idea I am going with is a simple side scroller game and I want the scrolling of the two images to be in their own tabs. On a side note, I can not figure out how to create random objects that appear in the path of the player.

Comments

  • edited March 2015

    Hello,

    how wide are your 2 images? Wider than the screen?

    Do you want to stitch them together?

    What happens if the player runs past the 2nd image? Does the 1st image reappear?

    image 1 - image 2 - image 1 - image 2 - endlessly...?

    Chrisir ;-)

  • its more like, image 1- image 1- image 1- image 1 etc. and then on top on that is a seperate layer that i want to do the same thing so image 2-image 2-image 2 etc. the size of image one is 800 w by 500 h the same dimensions as the processing window. the second image is i think 800 w by 150 h. the second image is grass that the character will run on.

Sign In or Register to comment.