Scrolling Repeating Background

Trying to create a scrolling background similar to the one in the tutorial on this website. I want my background to scroll to the left, however when I try to set the new image to spawn anywhere to the left of x=0 it doesnt spawn. Currently have spawn from position=(-self.size.width/2) and I can move the spawn position further to the right however anywhere below x=0 isn't being registered as a valid location.

Comments

  • sam.furnessmainsam.furnessmain Member Posts: 2

    Follow up - I can spawn the image at a negative y value but still not a negative x

  • bob loblawbob loblaw Member, PRO Posts: 793

    have you set the wrap x scene variable to true (on)?

  • Two.ETwo.E Member Posts: 599

    Are you using Wrap X?
    Might be your best option!

    Best,
    Two.E

  • BBEnkBBEnk Member Posts: 1,764

    Heres two ways of doing it, just depends on how your building game.

    Standard very easy

    Universal-game builds more work.

Sign In or Register to comment.