Infinite Tiled Scroll Paralax

Get help using Construct 2

Post » Wed Dec 11, 2013 12:49 pm

The issue here is the scrollx and scrolly

By changing the paralex of the layer scrollx and scrolly are not related to the layer anymore.

I think your setup would work if you change scrollx with (viewportleft(0)/2) and scrolly with (viewportbottom(0)/2)

the (0) behind the viewportleft determines the position on layer 0 that is in the middle of the viewport, so it should also work if the layer uses different paralex.
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Wed Dec 11, 2013 1:02 pm

@LittleStain

Might you be able to update the capx I posted with that change? I'm trying it out, but I'm not able to get it working. Eventually the tiled background just moves off like it was before.

*EDIT - Nevermind, got it working with

viewportleft("Parallax")-1280

Thanks a lot!AnD4D2013-12-11 13:50:10
@bearboxmedia
www.bearboxmedia.com

Nintendo Wii U Developer using Construct 2
B
79
S
12
G
7
Posts: 961
Reputation: 10,717

Post » Wed Dec 11, 2013 7:46 pm

Hi AnD4D

MY C2 downloanded from steam which is currently not the most resent release of C2. So i could not open the file.

Any it look like you solved it.
B
23
S
8
Posts: 45
Reputation: 1,867

Previous

Return to How do I....?

Who is online

Users browsing this forum: ivanski1983 and 4 guests