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:
and if the player pushes the down direction once, you show:
and pushes down again show:
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.
Develop games in your browser. Powerful, performant & highly capable.
Ah, I see now.
Thanks very much for your help.