Page 1 of 1

How do I loop a scrolling background

PostPosted: Fri Oct 31, 2014 10:59 am
by nicklowkcmagic
I have followed this tutorial: Top-Down Scrolling Background(from scrirra tutorials)

Besides using his set Y to sprite Background, is there any other ways to do continuous scrolling background??

Re: How do I loop a scrolling background

PostPosted: Fri Oct 31, 2014 3:39 pm
by Dalal
It depends on what you're trying to do. The most flexibile way I feel is to use a tiled background and use modulus to keep it wrapping. You still have to use 'Set Y', but I don't know if you can avoid that. Here's an example that wraps on all 4 sides with two events. You can replace the tiled background with any image of any size and it'll still work with the same events. Hope this helps.

Re: How do I loop a scrolling background

PostPosted: Tue Dec 02, 2014 12:29 am
by derikvlog
best, thanks

Re: How do I loop a scrolling background

PostPosted: Thu Dec 04, 2014 1:19 pm
by Lordshiva1948