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
6
S
1
Posts: 35
Reputation: 470

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
I don't check the forums much anymore, but I will receive an email for PMs.

"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
23
S
6
G
1
Posts: 1,419
Reputation: 4,857

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
76
S
20
G
76
Posts: 2,293
Reputation: 47,570


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 31 guests