Disable browser scroll with Construct 2 embed

Get help using Construct 2

Post » Fri May 10, 2013 12:07 pm

Hi all,

I have a quick question regarding embedding my Construct 2 game in an iframe; my game is a simple platform game using the arrow keys as controls but whenever I press the down key in the game it also triggers the browser window to scroll down therefore the canvas element is moved way off screen when on a long page. Has anyone occurred a similar problem and had a successful outcome? I'm struggling to find a solution myself; I've tried preventing the default browser functionality with javascript but I can't get that to work either.

Kind regards,
mmmoustache
B
3
Posts: 4
Reputation: 283

Post » Fri May 10, 2013 12:39 pm

Have you tried using r129 with the 'embed' export template? It's specially designed to solve this problem.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,590

Post » Fri May 10, 2013 3:30 pm

Awesome, this works! Thank you
B
3
Posts: 4
Reputation: 283


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 3 guests