How do I stop browser scrollbar?

Get help using Construct 2

Post » Fri Jun 05, 2015 4:36 pm

My game controls are up and down keyboard buttons. When I play the game on computer display with big resolution, everything is ok. But on small screen, like notebook, my browser turn on scrollbar and when I pressed the keyboard button in order to play the game ( up and down ) the whole webpage are moving up and down with my game hero. How do I stop scrollbar when I use the keyboard up and down game controls?
B
5
S
1
Posts: 31
Reputation: 437

Post » Fri Jun 05, 2015 9:42 pm

You can try using manual scaling of things using the CanvasToLayerX and CanvasToLayerY parameters to get the screen sides/top/bottom, then scale everything as a percentage of the side lengths of the screen.
https://www.ravenheart.ca/home
Company name changed to avoid Facebook-type shenanigans

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
22
S
6
G
1
Posts: 1,415
Reputation: 4,824

Post » Fri Jun 05, 2015 10:55 pm

What about using WASD?
Alright, I've been thinking. When life gives you lemons, don't make lemonade! Take the lemons back! GET MAD! I DON'T WANT YOUR DANG LEMONS WHAT AM I SUPPOSED TO DO WITH THESE?! Demand to see life's manager!! Do you know who I am!?!?! I'M THE MAN WHOS GONNA BURN YOUR HOUSE DOWN... WITH THE LEMONS
B
17
S
9
Posts: 157
Reputation: 2,150

Post » Sat Jun 06, 2015 2:48 am

Letterbox Scale should fix this - no need to reposition anything in c2.
A big fan of JavaScript.
B
74
S
20
G
69
Posts: 2,207
Reputation: 43,836


Return to How do I....?

Who is online

Users browsing this forum: namaewayukidesu and 22 guests