Infinitely Scrolling Backgrounds

Get help using Construct 2

Post » Sun Sep 25, 2011 9:57 pm

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!
B
29
S
5
G
6
Posts: 58
Reputation: 5,121

Post » Sun Sep 25, 2011 10:11 pm

Kyatric posted a link at:

Scrolling Tiled Background in C2

See if that might help you.
B
18
S
8
G
7
Posts: 120
Reputation: 5,630

Post » Sun Sep 25, 2011 10:22 pm

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

B
29
S
5
G
6
Posts: 58
Reputation: 5,121

Post » Sun Sep 25, 2011 10:34 pm

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.Kyatric2011-09-25 22:34:42
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,999
Reputation: 57,793

Post » Sun Sep 25, 2011 10:55 pm

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
B
29
S
5
G
6
Posts: 58
Reputation: 5,121

Post » Mon Feb 24, 2014 9:34 pm

Hi guys, I'm trying to make the background scrolling for ever. I followed your tips but it doesn't want to work
Here is a screen, what's wrong? Thanks in advance!

Image
B
4
S
1
Posts: 11
Reputation: 414

Post » Mon Feb 24, 2014 9:53 pm

@Falkons Check the infinite runner or flying along templates, one of those has infinitely scrolling backgrounds in it.
B
49
S
11
G
10
Posts: 1,833
Reputation: 14,418

Post » Wed Feb 26, 2014 7:19 pm

Thank you very mush BluePhaze!
B
4
S
1
Posts: 11
Reputation: 414

Post » Tue Sep 20, 2016 6:13 am

Falkons wrote:Hi guys, I'm trying to make the background scrolling for ever. I followed your tips but it doesn't want to work
Here is a screen, what's wrong? Thanks in advance!

Image



Everytick - Set Y to TiledBackground.Y -61 * dt (Bad) ------> Everytick - Set X to TiledBackground.X -61 * dt (Is This Correct)


:D
B
20
S
6
G
1
Posts: 50
Reputation: 1,867


Return to How do I....?

Who is online

Users browsing this forum: Lof, R0J0hound and 1 guest