Layout Size and Position [SOLVED]

Get help using Construct 2

Post » Tue Jan 15, 2013 9:02 pm

I have been playing around with the Layout size and angle and Layer size and angle.

Is there a way to get the Layout to change position relative to the window?

I would like the Layout to be at a slight angle and be in the middle of the window. Say a Window of 800 x 800 and a Layout of 600 x 600 I would like there to be a visible border of 100 around the entire layout.

is this possible within Construct 2 or do I need to go to Canvas drawing for that?RangerJim2013-01-22 22:11:38
B
13
S
4
G
3
Posts: 75
Reputation: 3,425

Post » Wed Jan 16, 2013 6:35 pm

Nobody has anything on this?
B
13
S
4
G
3
Posts: 75
Reputation: 3,425

Post » Wed Jan 16, 2013 6:51 pm

Sorry, not 100% sure what you mean, but please find the attached. I've set it so that the layout rotates 1 degree every tick. If you want, you can change it so that at the start of the layout, it is just set to a certain angle.

CAPX here
@bearboxmedia
www.bearboxmedia.com

Nintendo Wii U Developer using Construct 2
B
68
S
8
G
6
Posts: 930
Reputation: 9,358

Post » Wed Jan 16, 2013 8:30 pm

Thanks for replying,

The angle is not an issue.

The layout by default is anchored to the window at 0, 0.

I would like to anchor the layout in the middle of the window.

So the layout would start at 100, 100 with the window being larger than the layout.

I can find nothing that allows for this.
B
13
S
4
G
3
Posts: 75
Reputation: 3,425

Post » Thu Jan 17, 2013 7:00 pm

OK, I solved this for myself.

The unbound scrolling was the key.

I have an invisible sprite in the center of my layout with Scroll To behavior.

The window size is set for 800, 800 while the layout size is 640, 480.

This will allow me to have my Game Layout in the center of the screen.
B
13
S
4
G
3
Posts: 75
Reputation: 3,425


Return to How do I....?

Who is online

Users browsing this forum: h1k3 and 18 guests