Infinitely Scrolling Backgrounds

Forum Home Forum Home > Construct 2 General > How do I....?
 Post Reply Post Reply
Author
2,796 Rep
Post Options Post Options   Quote ayzhong Quote  Post ReplyReply Direct Link To This Post Topic: Infinitely Scrolling Backgrounds
    Posted: 25 Sep 2011 at 10:55pm
i tried out your method, except i replicated it so that it scrolled on y axis. so i put: sea: y<=windowheight|set y to window height, but its not working...
thanks for the quick replies, by the way
Back to Top

Moderator
28,650 Rep
Post Options Post Options   Quote Kyatric Quote  Post ReplyReply Direct Link To This Post Posted: 25 Sep 2011 at 10:34pm
A single tiledbackground is not the best of ways to go I think.

In my example it works because the texture is power of 2 (128) and the WindowWidth is too.
If your texture file (the one you "feed" the TiledBackground) is power of two and the WindowHeight is too, it should work "seamlessly".
Make sure the height of your tiledbackground matches the WindowHeight and you should have it.

Edited by Kyatric - 25 Sep 2011 at 10:34pm
Back to Top
2,796 Rep
Post Options Post Options   Quote ayzhong Quote  Post ReplyReply Direct Link To This Post Posted: 25 Sep 2011 at 10:22pm
thanks for the reply!
but, i'm trying to get it to work on the y axis. taking two of my tiled backgrounds and mashing them together does not form a seamless background, i think thats wat is happening in kyatrics file.
is there a way to do this with a single background file

Back to Top
2,846 Rep
Post Options Post Options   Quote Ghengis Quote  Post ReplyReply Direct Link To This Post Posted: 25 Sep 2011 at 10:11pm
Kyatric posted a link at:

Scrolling Tiled Background in C2

See if that might help you.
Back to Top
2,796 Rep
Post Options Post Options   Quote ayzhong Quote  Post ReplyReply Direct Link To This Post Posted: 25 Sep 2011 at 9:57pm
How would I do a infinitely scrolling tiled background? I have set a bullet property to the background and a wrap property but the background does not wrap until the whole thing is off screen.

Thanks in advance!
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down