Web scrolling

Get help using Construct 2

Post » Tue Aug 14, 2012 4:36 pm

Hi. I have placed my game on html5 site, but the problem is when I press up or down arrow. The site scrolls down and up. How can I make that there is focus to my html5 game now to the website?
B
4
Posts: 42
Reputation: 559

Post » Tue Aug 14, 2012 4:45 pm

Extract from the keyboard manual entry:

[quote]Browser shortcut keys

In some browsers, some keys are shortcuts for browser actions. For example, space bar sometimes is a shortcut to scroll down the page. If any events exist for 'On key pressed' with a given key, Construct 2 blocks the browser from performing its normal action. For example, if you wish to prevent space bar scrolling down the page, add an empty 'On Space pressed' event, if you don't have one already.[/quote]

Same applies with arrows.Kyatric2012-08-14 16:45:40
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 7,000
Reputation: 57,795

Post » Tue Aug 14, 2012 5:10 pm

@Kyatric Thanks, it helped a lot! :-)
B
4
Posts: 42
Reputation: 559


Return to How do I....?

Who is online

Users browsing this forum: alanziy, Vegamon007 and 24 guests