Vertical parallax scrolling

Get help using Construct 2

Post » Thu Aug 23, 2012 10:51 pm

I'm trying to achieve vertical parallax scrolling for my space shootemup but it's driving me crazy! I know you can change the parallax scrolling per layer but then the layers go out of sync.

This is what I'm trying to achieve (from my GM game StarForce): Parallax scrolling, but whatever I try doesn't seem to go right!

I'm using a tall screen and constantly moving object which the view follows so I don't know if that's screwing up the parallax scrolling.

I know there is a parallax scrolling example but that's for platforms. Does anyone have a vertical parallax scrolling demo I could take a look at?

Also, if you set Parallax in editor to "yes", that layer moves way out of sync and you can only highlight objects where they used to be (with Parallax in editor set to "no")

Here's the CAPX, try highlighting the gray tiles to see what I mean.
B
72
S
25
G
9
Posts: 382
Reputation: 10,649

Post » Thu Aug 23, 2012 11:01 pm

I want the gray tiles to start near the start (bottom) of the level, like this:



But when I turn parallax on they are suddenly whisked away towards the end (top) of the level!Nickydude2012-08-23 23:01:53
B
72
S
25
G
9
Posts: 382
Reputation: 10,649

Post » Tue Aug 28, 2012 11:38 am

Does anyone have any ideas on this as I'm still struggling with it.
B
72
S
25
G
9
Posts: 382
Reputation: 10,649

Post » Tue Aug 28, 2012 11:54 am

Yeah, unless I'm totally looking at this wrong it seems like something IS going a bit wonky. I just don't know what.

If no one can get you a good answer, I'd suggest faking parallax in the mean time. Manually scroll the sprites and have the different levels of background move faster/slower than each other to give the same look.
B
20
S
9
G
6
Posts: 607
Reputation: 6,112

Post » Tue Aug 28, 2012 3:28 pm

Hey Nicky, hows this?

http://db.tt/Kr9RvwD5

Working with parallax over a long stage can get tricky. The trick is to have the parallax set to "visible" in the editor, then start arranging your pieces into position while the "view" is set to 100 percent.

100 percent view is what you will see when you play the game, the origins of the objects on the parallax layer go out of sync because when you zoom out you see more of the screen and it seems to throw the position out but really doesnt.GenkiGenga2012-08-28 15:34:26
ImageImage
B
73
S
16
G
6
Posts: 1,038
Reputation: 10,473

Post » Tue Aug 28, 2012 4:16 pm

Thanks, I think I'm getting the hang of it

Starforce - Cursor keys to move, CTRL or left mouse button to fire.
B
72
S
25
G
9
Posts: 382
Reputation: 10,649

Post » Tue Aug 28, 2012 4:36 pm

No worries, lookin good too!

Love the sound of that gun gire.
ImageImage
B
73
S
16
G
6
Posts: 1,038
Reputation: 10,473


Return to How do I....?

Who is online

Users browsing this forum: 99Instances2Go, jul, nicklowkcmagic and 19 guests