[Solved] Parallax Multiplier

Get help using Construct 2

Post » Sat Nov 10, 2012 6:38 pm

Hi all,

This is probably really simple, but my brain is having a hard time figuring it out.

How do I get the far right Y coordinate of a layout, taking into consideration a layers parallax.

LayoutWidth works fine for parallax 0,0. How would I then calculate what this would be on a layer with parallax 150,150.

Any help would be great :)thehen2012-11-10 19:25:10
Moderator
B
72
S
13
G
11
Posts: 900
Reputation: 11,783

Post » Sat Nov 10, 2012 7:24 pm

LayoutWidth+((LayoutWidth-ProjectWindowSize)*(ParallaxAmount-1)

^ This seems to work :)thehen2012-11-10 19:26:30
Moderator
B
72
S
13
G
11
Posts: 900
Reputation: 11,783


Return to How do I....?

Who is online

Users browsing this forum: anty21ro, fr0z3n, LeFuji, RookieDev, TRMG and 15 guests