System Scroll to...

0 favourites
  • 3 posts
From the Asset Store
All popular touch mechanics - scrolling, zooming, swiping
  • 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:

    <img src="" border="0" />

    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?


  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Scroll to 0,0

    In layout properties, set unbounded scrolling to YES.

    I'm sure that's what you want.

  • 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.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)