Hundreds of features to explore
Games made in Construct
Your questions answered
Trusted by schools and universities worldwide
Free education resources to use in the classroom
Students do not need accounts with us
What we believe
We are in this together
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
Hello recently I made a game with a scrollable menu where u can scroll using the mouse scroll but when you scroll then the website also move is there a way to only do it inside the game and don't affect the website?
The game I'm talking about: crazygames.com/game/pumpkin-clicker
Add this script to your first layout:
window.addEventListener('keydown', ev => { if (['ArrowDown', 'ArrowUp', ' '].includes(ev.key)) { ev.preventDefault(); } }); window.addEventListener('wheel', ev => ev.preventDefault(), { passive: false });
Thanks a lot, it worked, just bought you a coffee, you are really awesome thanks for helping everyone all this years
Develop games in your browser. Powerful, performant & highly capable.
Thanks! :)