System Scroll to...

Get help using Construct 2

Post » Sat Jan 05, 2013 1:18 pm

Hello,

I have this situation that I'd need a piece of advise for:
trying to scroll a layout to initial position ( to the top left corner of it ) every time the layout is started. For this, I use:



while the size of the Window is 1024x748.
But this seems not to have any effect. The layout is started scrolled to a weird position ( not even the last one before layout restart ). However, on output to the console, the values of System.scrollx and System.scrolly are being reported correctly.
Don't know if it is important or not: I have several layers in this layout, and some of them have the parallax set to 0,0 and others to 100,100.

Any thoughts?
Thanks!xyboox2013-01-05 13:20:24
B
16
S
4
G
3
Posts: 46
Reputation: 2,875

Post » Sat Jan 05, 2013 6:56 pm

Scroll to 0,0
In layout properties, set unbounded scrolling to YES.

I'm sure that's what you want.
B
15
S
5
G
7
Posts: 877
Reputation: 5,650

Post » Sun Jan 06, 2013 2:14 pm

Thanks @procrastinator, but actually I don't need to have unbounded scrolling, on the contrary. What I meant to say by scrolling to top-left corner of the layout was not to put the corner in the middle of screen ( as 0,0 would do when unbounded is set to true ), but to have the top-left corner of the layout in the top-left corner of the window.
B
16
S
4
G
3
Posts: 46
Reputation: 2,875


Return to How do I....?

Who is online

Users browsing this forum: mjj1990 and 7 guests