Scroll bars if content is overflowing

0 favourites
  • 3 posts
From the Asset Store
All popular touch mechanics - scrolling, zooming, swiping
  • Is there a way to make the screen scroll (down or sideways) if the current layers content is outside the viewport size?

    I suppose a bit like a web browser.

    Basically, I have my levels inside an array and calling a foreach to print a button for each level. The levels may overlap the current viewport size.

  • do you mean like a menu system?

    you can do it, but you have to "fake" it. Meaning, not actually scroll the screen, but rather scroll the items.

    so if your window only can fit 5 items.. and you have 7 items.

    you start with:

    1

    2

    3

    4

    5

    and if the player pushes the down direction once, you show:

    2

    3

    4

    5

    6

    and pushes down again show:

    3

    4

    5

    6

    7

    so you can just make empty box slots on your screen and On Start of Layout loop through them and put the level sprites on top of them depending on where the player is in the menu system.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Ah, I see now.

    Thanks very much for your help.

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