Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Construct 3 runs in the browser & works offline
Students do not need accounts with us
Free education resources to use in the classroom
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
I want to add a menu to my game that has the ability to scroll. My idea is to put all the elements of the menu on a layer and make the layer able to scroll. But I don't know how to scroll only one layer. Any ideas?
Develop games in your browser. Powerful, performant & highly capable.
If you use layers, you might be able to play around with parallax to get only that layer to scroll.
You don't have to use layers though, you can just place and move your menu sprites up and down specifically.
Thanks for your reply! Now would it be possible to put all the objects into a family and move them up and down when scrolling? How would I prevent the menu from scrolling offscreen?
You can use families.
To prevent from scrolling offscreen, you would use conditions to limit the event to only work within the range you specify.
If you place all your menu items inside the layout and set the layout's "Unbounded Scrolling" to No, then you should be able to stay inside the layout no matter how much you scroll out.
I think you should check out this template https://www.scirra.com/store/royalty-free-game-templates/swipe-level-selector-1006, it has a very smooth scrolling feel, sure it was made for level selection but I think you can easily adapt it to a general purpose game menu.