How do I limit scroll to?

Get help using Construct 2

Post » Mon Mar 16, 2015 9:27 am

Let's say I have a layout with height of 500.
But I just want to use 450 for the environment (middle), and use the rest just in case for different device with different screen size.

How to make it work with scroll to behavior?
B
10
S
5
Posts: 220
Reputation: 1,464

Post » Mon Mar 16, 2015 10:39 am

Can't definitely understand your problem..
But if you don't want percisely 450 px, maybe it will be better to use percents? For example, 450 is 90% of 500 (450 = 500 * 0,9)
B
8
S
1
Posts: 72
Reputation: 606

Post » Mon Mar 16, 2015 10:51 am

I think ekajuan wants the camera at the centre of the screen with a gap around the edges so he can run it on different size devices and it will scale. Then he wants to be able to have the game scroll around but at the same time keep this extra padding in place.

I could be wrong but that's what it sounds like.
Some games: https://play.google.com/store/search?q= ... s&hl=en_GB Feel free to show the panda some support, he would appreciate it :)
B
19
S
5
G
1
Posts: 155
Reputation: 1,619

Post » Mon Mar 16, 2015 11:33 am

yep, exactly just like BinaryPanda said.
B
10
S
5
Posts: 220
Reputation: 1,464


Return to How do I....?

Who is online

Users browsing this forum: ivanski1983, Yahoo [Bot] and 15 guests