window size and layout size.

Discussion and feedback on Construct 2

Post » Mon Jan 02, 2017 9:59 pm

Hi, I have a bigger game window than the layout, I do not want to change the size layout unless it is really necessary, so I want to ask.

Can I move the layout and place it right in the center of the window?

Thus the window would be 440x240 and the layout would be 400x240.

Image

@rexrainbow
Hi rex, will not you have a plugin for this?
B
30
S
13
G
21
Posts: 838
Reputation: 14,656

Post » Mon Jan 02, 2017 10:33 pm

Set layout to unbound scrolling. Set layer to parallax. Use system action 'Scroll to position', position is middle of the layout.

?
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950

Post » Mon Jan 02, 2017 10:57 pm

99Instances2Go wrote:Set layout to unbound scrolling. Set layer to parallax. Use system action 'Scroll to position', position is middle of the layout.

?


Let's see if I can explain it well.
I have a window with size 440x240 but the game (includes scroll) should be seen in the middle of the window at 400x240, this means that there will be black margins on the sides.
Could it be done as you say?
B
30
S
13
G
21
Posts: 838
Reputation: 14,656

Post » Tue Jan 03, 2017 12:42 am

Yes at in the middle.
Suppose you need 2 black sprites in a top layer to mask the margins.
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950


Return to Construct 2 General

Who is online

Users browsing this forum: AlexiarTW and 12 guests